Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
i need to check whether the drop down list is select or not. if its selected i need to call the function. i tried with this code.

if(dropdownlist1.selectitem!=null)
{
function call;
}

but this is not working...
can anyone help me..
thanks..
Posted

Capture the SelectedItem event and then handle that event via code.
 
Share this answer
 
Comments
sudhathayumanavan 22-Nov-12 22:42pm    
can u explain it with example plz...
sudhathayumanavan 23-Nov-12 2:56am    
thanks Abhinav
SQL
if (price_drop.SelectedIndex.ToString() != "0")

          {

              uploadprice(price_drop, price_txt, ids);
          }
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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