Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 does mvc represent in asp.net? : asp.net mvc

1199


Explain what does wsdl stand for?

1141


Define globalization and localization.

991


Define a multilingual website?

975


What is s2s tracking?

983


What is razor? : asp.net mvc

1041


Is viewstate secure?

963


What is owin authentication?

972


Explain what the contents of cookie?

1062


How many validators do ASP.NET have?

1094


Define resource files.

971


What does the .webpart file do?

1032


What is server components?

1036


How asynchronous call can be implemented using delegates?

1000


Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?

996