Solved

form not being validated before submission

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordcount challenge 11 121
Arduino EDI - Programming language 3 94
C# code editing and collaboration 3 110
Delphi: barcode reading on android platform 1 28
This is an explanation of a simple data model to help parse a JSON feed
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

776 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