Solved

form not being validated before submission

Posted on 2004-08-18
4
202 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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 …

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now