In a page there is dropdown list with the name of the
cities like Bangalore,Pune,Chennai,Other and a text box
that would enable the user to enter the name of the city if
other is selected. How to enable validation on the text box
if other is selected
Answer Posted / udai
On_page load
{
RequiredFieldValidator1.Enabled = false;
}
if (DropDownList1.SelectedItem.Text == "Other")
{
RequiredFieldValidator1.Enabled = true;
}
else
{
RequiredFieldValidator1.Enabled = false;
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What does mvc represent in asp.net? : asp.net mvc
Explain what does wsdl stand for?
Define globalization and localization.
Define a multilingual website?
What is s2s tracking?
What is razor? : asp.net mvc
Is viewstate secure?
What is owin authentication?
Explain what the contents of cookie?
How many validators do ASP.NET have?
Define resource files.
What does the .webpart file do?
What is server components?
How asynchronous call can be implemented using delegates?
Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?