Fetching Database Records in Form Fields!
-
My problem is that , i can connect database of all types, but how to fetch data from database in asp.net forms back, e.g i make a form in asp.net "FirstNanme TextField","RollNumber TextField","Class TextField" now when i enter data in these fields it will be successfully entered in the database. Now i want to fetch them in TextFields back from the database. mean i make a search field on my form and try to search some entries which user entered in database wehn i search for a specific name in search field it will be show in my form text fields, i'm not taking about datagrid o.k, (you can say when we signin in our yahoo id and see our specific profile in yahoo only the authenticated and specific user can show his dataentries in textfields in yahoo personal profile and can change his information), plz help me in this regard.Thx m.rehanmunir
-
My problem is that , i can connect database of all types, but how to fetch data from database in asp.net forms back, e.g i make a form in asp.net "FirstNanme TextField","RollNumber TextField","Class TextField" now when i enter data in these fields it will be successfully entered in the database. Now i want to fetch them in TextFields back from the database. mean i make a search field on my form and try to search some entries which user entered in database wehn i search for a specific name in search field it will be show in my form text fields, i'm not taking about datagrid o.k, (you can say when we signin in our yahoo id and see our specific profile in yahoo only the authenticated and specific user can show his dataentries in textfields in yahoo personal profile and can change his information), plz help me in this regard.Thx m.rehanmunir
Hi there, Correct me if i misunderstand... So, just simply fetch data from DB (using SqlDataReader,...) Then, assign the value to the text fields (would be something like firstname.text = dr["firstname"]...) Hope this helps. << >>