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 is redirecting behavior?

909


What is class and object in asp.net?

1057


What are the differences between the response.write() and response.output.write()?

952


What is the use of data set in asp.net?

903


Can you change a Master Page dynamically at runtime?

922


What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?

1114


Explain difference between friend and protected friend?

875


Which two new properties are added in asp.net 4.0 page class?

884


What does asp stand for in asp.net?

929


Why is global asax is used?

964


How does the cookies work in asp.net?

1055


Explain what is viewstate?

934


What is difference between rest and soap?

1042


what is AutoEventWireUp and what is the use of This property explain in details?

1528


Explain how can you debug your .net application?

879