Click here to Skip to main content
14,983,411 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am dynamically adding a custom user control(add More Functionality ) to an place holder
My user control contains four dropdownlist controls .first instance of the user control work fine

problem was adding another user control and dropdownselectedIndexchaged all the dropdwon text are reset
Posted
Comments
[no name] 9-Oct-14 8:07am
   
Paste your code here, you may need to check !IsPostback in page load.

in page load add following statement
C#
if(!postback)
{
   // bind your drop down lists here
}

hope this might help you !! :)
   
Add trigger for dropdownlist for avoiding selected index change firing on every postback
   

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