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

if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

1849


What is application variable in asp.net?

476


Do session use cookies in asp net?

506


Explain login control and form authentication.

569


Explain asp.net application life cycle?

558






Which method is used to perform all validation at the page level?

544


What are the Difference between asp.net and asp ?

577


What does clearing cache?

548


What do you mean by query string?

529


What are the properties of the eventargs argument when capturing keyboard events?

552


8. Why do you want to work here?

1488


What is asp.net and its advantages?

556


Why cyclomatic complexity is important?

568


What are server objects?

521


Is it right that ASP.NET Web API has replaced WCF?

517