Solved

form not being validated before submission

Posted on 2004-08-18
4
219 Views
Last Modified: 2010-04-17
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.
0
Comment
Question by:BrijBhasin
  • 2
4 Comments
 
LVL 4

Expert Comment

by:chipple
ID: 11838010
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.
0
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 125 total points
ID: 11838281
Does your control has CausesValidation="true"
0
 
LVL 4

Expert Comment

by:chipple
ID: 11838294
Oops please ignore me I was speaking HTML/JavaScript.
0
 

Author Comment

by:BrijBhasin
ID: 11897959
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 )

 
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question