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

For which does this Codebehind="MyCode.aspx.cs" is relevent to ?

1026


What are the difference between function and stored procedure in .net programming language?

663


What is the use of session state and application state and difference between them?

868


What is cookies cache and session?

912


What is css and what is it used for?

950


Can we make activex dll also ti execute in some process as that of client ? How can we do?

4676


Where is session data stored in asp net?

927


What is the benefit of WebAPI over WCF?

956


Explain about Application and Session Events ?

1009


What are the difference between overriding and overloading?

1004


COM+ Used ________________ Isolation Level

1917


Explain Life cycle of ASP.NET page when a request is made.

1177


What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?

928


What does occur first in ASP.Net, Authentication or Authorization?

987


Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc

987