Bypass RequiredFieldValidator (1 Viewer)

jaydwest

JayW
Local time
Today, 12:34
Joined
Apr 22, 2003
Messages
340
I'm creating a web site using ASP.Net 2.0 and trying to use Microsoft's RequiredFieldValidator on a page with a DetailsView. I open the page in Insert mode. I have a button to link to another page. When the page is opened, nothing is added, and I click on the link button, the Required Field Validator fires off, displays a message about the required field and previents the link from executing.

Is there a work around for this?

Muchas Gracias for your help.
 

jaydwest

JayW
Local time
Today, 12:34
Joined
Apr 22, 2003
Messages
340
Thanks for the quick response.

I had already discovered the resolution to my problem. Scott Mitchell mentioned it in his article.

I set the CausesValidation property of the button false. Too bad he didn't mention this in his book !@#$%

This worked like a champ.

Thanks again.
 

Users who are viewing this thread

Top Bottom