Link to home
Start Free TrialLog in
Avatar of BrijBhasin
BrijBhasin

asked on

form not being validated before submission

i have a form with lot of validtion controls to check for fields. But the form submits without checking for any form fields. I have rechecked the IDs on the requiredfield property and tehy r all distinct. Is there anything else I can check.
Avatar of chipple
chipple

Make sure that your form's onsubmit is set and returns the result of the validation. For example:
onsubmit="return f_Validate(this)"

Otherwise, could you post your code?

Good luck.
ASKER CERTIFIED SOLUTION
Avatar of arif_eqbal
arif_eqbal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oops please ignore me I was speaking HTML/JavaScript.
Avatar of BrijBhasin

ASKER

I put the CausesValidation="true" but that didnt work .. if I submit the form without entering anything this is the error I get
which is basically saying that the mail message can't be sent i.e. the form submitted blank

At least one of the From or Sender fields is required, and neither was found.

Line 208:' Send the Mail Message
Line 209:SmtpMail.SmtpServer = "mail.amsumash.com"
Line 210:SmtpMail.Send( objMailMessage )