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

Field: <asp:textbox id="textbox1" runat="server">
<asp:CustomValidator id="valCustom" runat="server"
ControlToValidate="textbox1"
ClientValidationFunction="ClientValidate"
OnServerValidate="ServerValidate"
ErrorMessage="*This box is not valid" dispaly="dynamic">*
</asp:CustomValidator>

ClientValidationFunction is usually a javascript funtion included in the html to the user. OnServerValidate is the function that is server-side to check for validation if client does not support client-side validation.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between table and query?

912


What is the function of the ViewState property?

980


Why the javascript validation not run on the asp.net button but run successfully on the html button?

906


In Code-Behind class which kind of code (server or client) is found ?

997


What is the difference between user control an custom control?

1065


Describe how passport authentication works.

1062


How to create multi language website in asp.net mvc? : Asp.Net MVC

926


Explain how is a property designated as read-only?

960


What is comparevalidator?

912


What is css and what is it used for?

948


Is a dll file an executable?

981


What are the Types of chaching. How to implement caching

951


Explain page output caching?

932


Do you know using sql cache invalidation?

966


What is the difference between dynamic SGA and static SGA?

1075