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...

How do you use a custom validator? When might you want to
use one?

Answer Posted / santosh bind

when using the complex validation like text should not contain the max 50 char

protected void cusCustom_ServerValidate(object sender, ServerValidateEventArgs e)
{
if(e.Value.Length == 10)
e.IsValid = true;
else
e.IsValid = false;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is global.asax file used for?

1013


What is query string in asp.net?

1057


Mention the namespace that is used to include .net data provider for sql server in .net code?

938


What is the difference between pathparam and queryparam?

1028


What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?

955


Explain in what order a destructors is called.

1005


Describe the differences between the lifecycles of Windows services and Standard EXE?

1173


What is inproc and outproc?

979


What is a pixel url?

916


What is OSI layer? Explain different layers.

1051


What r the asp.net list controls and diff. Between them?

957


Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?

967


What is Partial PostBack in ASP.NET?

1018


What is the purpose of session management?

981


To wrap up a call to a Web service the standard used is..?

962