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
Can we store object in viewstate?
What is loop in asp.net?
What is the use of session?
What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?
How to use push notification?
How is a session stored and maintained in asp.net?
What is the life-span of the items in the viewstate?
How can we communicate with each server in N-tier Architecture? and what are the methods?
How to register exception filter globally?
What is a session in asp.net?
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
Explain server-side scripting?
If you are using components in your application, how can you handle exceptions raised in a component?
Which two new properties are added in asp.net 4.0 page class?
How do sessions work?