Click here to Skip to main content
14,733,599 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
why select index change event in dropdownlist is run in first load page automatically?
i don't change dropdown list to trigger event it's automatically fired event in first load page and it's confusing ?!!!
Posted
Updated 16-Oct-14 22:00pm
v2
Comments
Sinisa Hajnal 17-Oct-14 3:35am
   
Why? At some point (when datasource is bound) combobox gets its first item selected. Therefore the index changes. Are you adding ddl dynamically? Is it part of user control? Check the link in the solution, see if that helps.

1 solution

There is a similar problem here[^]

See if any of the offered solutions matches your problem.
   
Comments
snicee 17-Oct-14 4:04am
   
no my problem is diffrent its load automatically in loadpage...
Sinisa Hajnal 17-Oct-14 4:35am
   
How does it load automatically? You have to have the code to fill it. Please use Improve question link and post your load code.

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