Sir I am now doing a C# windows form project with database.
I have 21 forms in my project and a database.
among my forms, i have form named frmStudent.
it has a label named lnksearchApplicationFormNo(using to search database data by application form no.
My database table name representing this form is tbl_Student.
it has a column named 'applicatnformNo'.
how can search the applicatnformNo in linklabel1_click_event?
and also i want to display all data retrieved from the database in the concerned fields.
please help me by write coding.
Loading

Iftikar HussainPosted Jul 11, 2013, 12:28 AM
Regards,
Iftikar
Bineesh ViswanathPosted Jul 10, 2013, 1:17 PM
I am confused of the program.
actually I got result by setting fk key to null. Though I can pass the value to database, this
project not give me the result I expects.
It have parts like sql Table, Stored Procedure, Info class, sp class and form.cs .
each coding to be interconnected and the value passes should have equality to each to others.
I getting a error while I try to attach my project in this site.
I even tried to upload the files separately, but in vain.
So If you give your email Id, i will send you the whole project and you can do the repairing
with ease.
any way, tell which of the code need?.
Iftikar HussainPosted Jul 6, 2013, 2:29 AM
Regards,
Iftikar
Bineesh ViswanathPosted Jul 6, 2013, 12:50 AM
Iftikar HussainPosted Jul 5, 2013, 8:05 AM
Regards,
Iftikar
Bineesh ViswanathPosted Jul 5, 2013, 7:38 AM
You can see a linkLabel control named 'Search Application Form No' .
when I click it, I want to retrieve all the data from the table to the concerned fields of this form.
i.e when I click the label, admissionNo to be inserted to the textbox representing admissionNo.
Bineesh ViswanathPosted Jul 5, 2013, 7:27 AM
I am getting lot of errors:-
1) Error1: Cannot implicitly convert type 'string' to 'decimal'
because of( int id = textboxapplicatnformNo.text)
This problem is solved when I write(decimal id = decimal.Parse(txtApplicationFormNo.Text)
2)
3) Error3: The name 'dataGridView1' does not exist in the current context
can you tell me the cause for arise these errors?
Iftikar HussainPosted Jul 5, 2013, 6:50 AM
You can do like this
dataGridView1.DataSource =dt;
Regards,
Iftikar