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 globalization and localization?

967


What is odata in web api?

1076


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

2030


Explain the difference between array and linkedlist?

989


Define common type system?

982


Where would you use an ihttpmodule, and what are the limitations if any?

1017


Define the types of configuration files.

979


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

1030


What are the different authentication modes in asp.net?

1016


What are the navigation ways between pages available in ASP.NET?

1038


Explain managed code an un-managed code.

1027


Which Is Faster MVC or ASP.net ?

1034


What are triggers of an updatepanel?

972


is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?

2416


Define a static class?

978