-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Saravana
Message 2 in Discussion
hi, You can create custom validation control. The Customer validation control
allows you to define your own validation function. For example, your validation
might be to verify a credit card, or to check zip code against city and state,
etc. You may have a custom javascript library to perform client-side
validation. The following snippet validates a password field to be greater than
6 characters in length.
<SCRIPT LANGUAGE="JavaScript">
function validateLength(oSrc, args){
args.IsValid = (args.Value.length >= 6);
}
</SCRIPT>
<asp:CustomValidator id="CustomValidator1" runat=server
ControlToValidate = "txtPassword"
ErrorMessage = "Passwords must be at least 6 characters."
ClientValidationFunction="validateLength" >
</asp:CustomValidator> For more details,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]