-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: AmitBarde
Message 2 in Discussion
1. Put a custom validator for the control that you need to validate
2. write a javascript that will validate your control
an example is given below
function ConfirmPresence(source, args)
{
var fRet;
var the_select = document.forms[0].ddShipping;
if (the_select.options[the_select.selectedIndex].value == 'Present' )
{
fRet = confirm(Are you there ?');
}
args.IsValid = fRet;
}
here in this example, you have to call ConfirmPresence from the custom validator. You
will not have to pass the params that are given just ConfirmPresence().
This function will popup the question Are you there ? if the selected value is Present.
What you have to do is write the validation code in the function and if the validation
succeeds then set args.IsValid = true; else if it fails then set the args.IsValid =
false.
Ciao,
Amit
-----------------------------------------------------------
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]