Click here to Skip to main content
15,913,854 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Dear All,

I am facing a problem in Binding Controls with Database Fields in Asp.net

I am using fornt-end as Asp.Net and Back-end as MySql

Table : users(user_id int,user_name text);

My aspx page contains one DropDown and one TextBox.

On the PageLoad, DropDown and TextBox should be bind with user_name and user_id respectively.

Please notice, I want to bind the fields by writing code on aspx.cs page only,
or if any other ways are there so please tell me.


Thanks,
Praveen
Posted
Comments
Sandeep Mewara 10-Feb-11 8:02am    
No effort. Asking for code though links shared to move ahead and try.
Praveen Kumar Upadhyay 18-Dec-14 6:35am    
Just wanted to know, who is this who has started devoting all my solutions and questions. If have guts tell me your name.

 
Share this answer
 
Data Binding[^] willl give you an clear idea.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900