RequiredFieldValidator on Submission

  • Thread starter Thread starter Brian Conway
  • Start date Start date
B

Brian Conway

I have added in a RequiredFieldValidator to my WebForm, however, when I try
to use my date box, before all the other fields are filled out it, it errors
out on all the empty fields. I want this WebForm to do validation when they
click the submit button and not after each field gets changed. Anyone know
how or where I put the code for this to get it to check just on submission
of the form and not all the time?
 
Set the EnableClientScript property to false. This will change the
validation point to the server for all clients, not just the downlevel
agents.
 
Well that kind of worked. It will now allow me to use my Date buttons, but
when I click on the submit button, it doesn't do any validation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top