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

Answer Posted / prashant yadav

selectedIndexChanged is a event while true is bool type
variable which is not corrct

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What asp.net control can embed xaml into asp.net pages?

534


How Session outproc in Sqlserver stored?

2295


What is server side in asp.net?

488


Explain the components of web form in asp.net

538


What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC

526






What is paging in context of Memory?

644


To redirect the user to another page which method do we use without performing a round trip to the client?

523


What is _dopostback in asp net?

518


What is viewstate parameter?

514


How to send a DataReader as a parameter to a remote client ?

2709


What is work flow gen? how can it will work with .Net?

2567


If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?

1958


What is difference between viewstate and session state in javascript?

566


What is synchronous and Asynchronous post back ?

637


Define dll hell?

618