Click here to Skip to main content
15,888,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a dropdownlist(All employees ex. madhu varun suman) in my webiste. If user select an employee from dropdownlist i am binding data of selected employee in datalist in employee.aspx page ,How to update data of employee dynamically
Posted
Comments
Arjsrya 2-Jan-15 6:15am    
Could you please share the code?Do you wanna bind data dynamically to dropdownlist?

Hi,

In dropdownlist there is an event called SelectedIndexChange. It will be fired when you select any of the item in the dropdownlist. Now using the this event you can update the employee value in the codebehind using a database connection. And make sure that you have set the autopostback enabled for that control.

Thanks
Sisir Patro
 
Share this answer
 
v2
Comments
Praveen Kumar Upadhyay 2-Jan-15 7:14am    
Also note that you need to change the AutoPostBack=true with your dropdown control.
[no name] 6-Jan-15 7:00am    
Thanks for the update. I have updated the solution as well.
Praveen Kumar Upadhyay 6-Jan-15 7:34am    
It worked??
 
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