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

Answer Posted / narashiman

if we try to set the dropdownlist1 autopostback to true. we
will not get the error

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is asp.net a programming language or framework?

556


What is a SESSION and APPLICATION object?

584


Which is the best institute to learn Microsoft Technologies and the faculty if you Know?

1620


Which is the parent class of the ASP.NET server control?

547


What is asp.net response object?

569






What is Razor View Engine

610


What types of data validation events are commonly seen in the client-side form validation?

571


List the types of authentication supported by asp.net?

530


Why Unload event of MasterPage Calls first in ASP.net ?

589


For which does this Codebehind="MyCode.aspx.cs" is relevent to ?

586


How does viewstate work?

579


Write some code using interfaces, virtual methods, and an abstract class`

1591


What is the difference between abstract class vs interface? Can give me the real time examples?

494


What is event in asp.net?

540


What is the difference between union and structure?

509