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 is difference between ispostback and autopostback in asp net?
Describe the differences between the lifecycles of Windows services and Standard EXE?
What is the difference between application state and caching?
What is asp.net futures?
What is the purpose of session management?
What is page fragment caching?
Explain the difference between dataset and datareader.
Write a code snippet to implement the indentation in json in web api.
What is web router?
What is http post and http get?
How do I publish my asp.net application to my isp's web server?
What is view state management in asp net?
What is the difference between system.stringbuilder and system.string
What is the life cycle of an asp.net page?
What is the current version of asp.net?