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

Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?

525


How do cookies work? Give an example of their abuse.

535


What is server side routing?

493


How can we create a website?

529


Explain about the Class view window?

580






What is a global postback url?

503


What is difference between mvc and asp.net? : Asp.Net MVC

560


What are the advantages and limitations of query string?

556


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

1741


How does asp page work?

536


Does asp.net still recognize the global.asa file?

547


Define the types of configuration files.

526


What is autopostback true?

597


List of words of preprocessor in .net?

512


How do I upload a file from my ASP.NET page?

587