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 is Bundling and Minification in MVC?

665


How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?

611


How do we assign page-specific attributes?

706


What are the Types of state management techniques

645


Why do we need url encoding?

615






What is the significance of attaching a profile while creating a user?

656


What is the function used for removing an event listener?

633


Can action method static?

638


What is the namespace to create thread in .net?

605


How to Insert/Add in ASPXgridview

656


Describe session handling in a webfarm, how does it work and what are the limits?

674


Why web api is better than wcf?

648


What is the maximum amount of memory any single process on windows can address?

621


What is loop in asp.net?

689


What does uri mean?

598