If(dropdownlist1.selectedIndexChanged==true)
{
//code
}
else
{
//code
}
I am getting error in If condition, so can u pls give me a
solution.

Answer Posted / milind

If(dropdownlist1.selectedIndexChanged!=0)

Try this 1 you will not get error

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the asp and asp.net?

582


When we use cookie less session? Explain its working?

646


What is the life cycle of an asp.net page?

608


What is bound controls

677


How would you turn off cookies on a page of a website?

581






Explain the asp.net page life cycle.

658


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

1644


What are the 3 levels at which content pages can be attached to Master Page?

678


what are the Custom controls in asp.net?

661


List the events in page life cycle.

635


What is the Intermittent crashing of application in production?

647


What is viewstate? In which event of the page life cycle, is the viewstate available?

692


What is data grid view in asp.net?

618


Define viewstate in .net?

615


How can exception be handled with out the use of try catch?

644