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
What is Bundling and Minification in MVC?
How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?
How do we assign page-specific attributes?
What are the Types of state management techniques
Why do we need url encoding?
What is the significance of attaching a profile while creating a user?
What is the function used for removing an event listener?
Can action method static?
What is the namespace to create thread in .net?
How to Insert/Add in ASPXgridview
Describe session handling in a webfarm, how does it work and what are the limits?
Why web api is better than wcf?
What is the maximum amount of memory any single process on windows can address?
What is loop in asp.net?
What does uri mean?