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
List of words of preprocessor in .net?
In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?
What are the different web pages?
How you can access the properties and controls of master pages from content pages?
What are different types of api?
Explain the purpose of storyboard.targetproperty.
How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?
what is command line compiler.what are the steps and how it is related to debugging.
What is meant by web application?
Can you explain one critical mapping?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
How can we provide the WebParts control functionality to a server control?
What are the major built-in objects in ASP.NET?
How would ASP and ASP.NET applications run at the same time on the same server?
Describe in brief .net framework and its components.