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 the web.config file in asp?
How can you send an email message from an asp.net web page?
Explain http handlers? Where we can use the http handlers?
What are tuples?
What are the Difference between asp.net and asp ?
How do cookies work?
What is asp.net master page?
Can we have multiple master pages in asp net?
Explain what the contents of cookie?
Explain Areas in MVC?
What are the different method of navigation in asp.net?
a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.
What is a 404 redirect?
What are directives in asp.net? List down all the important directives.
What is cookies cache and session?