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


Please Help Members By Posting Answers For Below Questions

What is the web.config file in asp?

642


How can you send an email message from an asp.net web page?

527


Explain http handlers? Where we can use the http handlers?

694


What are tuples?

546


What are the Difference between asp.net and asp ?

573






How do cookies work?

596


What is asp.net master page?

557


Can we have multiple master pages in asp net?

513


Explain what the contents of cookie?

594


Explain Areas in MVC?

656


What are the different method of navigation in asp.net?

571


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.

1446


What is a 404 redirect?

567


What are directives in asp.net? List down all the important directives.

507


What is cookies cache and session?

548