Solved

form not being validated before submission

Posted on 2004-08-18
4
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Simple Linear Regression

724 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