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
How do you design a website with multilingual support in ASP.NET ?
How does session id work?
Why asp.net is better than php?
What are server side controls?
Explain MVC model binders?
What are the new navigation controls in asp.net 2.0?
What are the differences between primary foreign and unique keys?
What are the main differences between asp and asp.net?
What is the difference between sealed vs static class?
How many types cache in asp net?
If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?
What is data cache in sql server?
What are the different types of sessions in asp.net? Name them?
Describe the master page.
What are validator? How do you disable them?