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 / swethasri

Client Side validation:
A Javascript function can be written to disable/enable the
text box and it can be called under
DrowpDownList_SelectIndexChanged event. We can provide an
if condition and get the required change in javascript
function.

or else

Server side validation:
we can make the dropdownlist 'AutoPostBack' property true.
and under the DrowpDownList_SelectIndexChanged event, we
can disable/enable the textbox.

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of file extensions for razor views in ASP.Net MVC?

1237


How can we pass info between 2 asp.net pages?

1077


What is the use of worker process in asp.net?

1015


What is the use of session?

936


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

2049


What are the types of session in asp.net?

967


What is difference between mvc and asp.net? : Asp.Net MVC

1198


What are assemblies and namespaces and explain the difference between them ?

1087


Explain diff. Betn dataset and recordset?

1005


How does session state work in asp.net?

1026


Explain the difference between the web config and machine config.

1036


What does session_start () do?

1099


Define transparent caching with aop?

1096


What is postback in asp net?

1049


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

977