-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Manikandan
Message 1 in Discussion
Hi,
I am facing some issues in Dotnet validation controls in web form. I have
two controls in my web page say "field 1" and "field 2". My requirement is, if
the user enters value in "field 1" then the "field 2" should be mandatory
otherwise its optional. Right now I am enabling and disabling the validation
controls in the javascript based on the condition. Is this the right way to
implement these kind of validation or is there any other way I can implement
this validation.
Sample code:
if (document.Form1.Field_1.value == "")
document.all["validationcontrol1"].enabled=false;
else
document.all["validationcontrol1"].enabled=true;
Now the issue is, the above code works sometime and fails sometime. I
couldnt locate the problem. Can anyone give the suggestion / solution
for this issue.
Regards
P.S. Manikandan ,
CGI Information Systems,
Tel:
091-080-8521224 Ext-291,
[EMAIL PROTECTED]
-----------------------------------------------------------
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]