Click here to Skip to main content
15,868,306 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
i have a drop down list inside a detailsview, i bind it with the table ,when i select item from dropdown list,always the item at selected inbex 0 is selected.please give me any idea on this,
thanks in advance
Posted
Comments
K Herms 9-Dec-11 8:05am    
Did you bound the detailsview before you check the selectedindex of your dropdownlist?
Vishwajeet Singh Chouhan 9-Dec-11 23:26pm    
ya i bind it with the database table
arathi_suresh 12-Dec-11 9:17am    
paste your code

arter selection you are again binding your combo.check your binding part.
 
Share this answer
 
if u have "select" field in the dropdownlist better u remove the "select" instead write Dropdownlst.Items.Insert(0,"select");in Page_load.Then U have to check the binding part for dropdownlist.
 
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