If(dropdownlist1.selectedIndexChanged==true)
{
//code
}
else
{
//code
}
I am getting error in If condition, so can u pls give me a
solution.
Answer Posted / gaurav k
SelectedIndexChanged is a event for the DropDown Control.
True is a bool type. We can not compare an event with bool
type like this. If we have to do somthing on the change of
the selection of an item, we can write the appropriate code
in the SelectedIndexChanged Event.
protected void DropDownList1_SelectedIndexChanged
(object sender, EventArgs e)
{
//Code
}
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What kind of programming language is ASP.NET?
9. Why should we hire you over the others waiting to be interviewed?
What is active web pages?
How will you maintain versioning in asp.net 2.0?
What is the use of global.asax file?
Explain the components of web form in asp.net
What is asp.net with mvc? : Asp.Net MVC
What is a server farm in iis?
Is asp.net free?
What is mvc in angular?
Which data type does the rangevalidator control support?
What does ascx stand for?
What is difference between view and partial view?
how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly
What do you mean by authentication?