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
Define repository pattern in asp.net mvc? : asp.net mvc
Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?
If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?
Explain what are the advantages of asp.net mvc framework? : asp.net mvc
Web API uses which library for JSON serialization?
What is the use of placeholder control?
What is an example of an application service provider?
What is marshalling ? Is it a part of asp.net ?
How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?
Do I need to have the latest version of windows media player installed?
What are the different authentication modes in asp.net?
What is the typical session identifier?
Explain the features that make asp.net more used framework? : asp.net mvc
How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC
What is datagrid asp.net?