Connecting Tech Pros Worldwide Forums | Help | Site Map

Required Field Validator (ASP.NET)

MrMike
Guest
 
Posts: n/a
#1: Jul 21 '05
Hi. I have a webform with a two required field validators. I have a cancel
button on the form which should allow the user to quit the form and
Response.Redirect to a previous webform. However, when users attempt to
cancel out of the form they cannot because the required field validators turn
on (because the page is posted back) and the users must actually input values
into the required fields and then click the cancel button.

How can I allow users to simply exit out of the webform dispite whether or
not they've completed the required fields? Thanks.

[Alan Flores]
Guest
 
Posts: n/a
#2: Jul 21 '05

re: Required Field Validator (ASP.NET)


set button's CausesValidation property to False.

hope this helps.

"MrMike" wrote:
[color=blue]
> Hi. I have a webform with a two required field validators. I have a cancel
> button on the form which should allow the user to quit the form and
> Response.Redirect to a previous webform. However, when users attempt to
> cancel out of the form they cannot because the required field validators turn
> on (because the page is posted back) and the users must actually input values
> into the required fields and then click the cancel button.
>
> How can I allow users to simply exit out of the webform dispite whether or
> not they've completed the required fields? Thanks.[/color]
MrMike
Guest
 
Posts: n/a
#3: Jul 21 '05

re: Required Field Validator (ASP.NET)


Alan, Unfortunately this did not work. Any other suggestions? Thanks for
helping.

"[Alan Flores]" wrote:
[color=blue]
> set button's CausesValidation property to False.
>
> hope this helps.
>
> "MrMike" wrote:
>[color=green]
> > Hi. I have a webform with a two required field validators. I have a cancel
> > button on the form which should allow the user to quit the form and
> > Response.Redirect to a previous webform. However, when users attempt to
> > cancel out of the form they cannot because the required field validators turn
> > on (because the page is posted back) and the users must actually input values
> > into the required fields and then click the cancel button.
> >
> > How can I allow users to simply exit out of the webform dispite whether or
> > not they've completed the required fields? Thanks.[/color][/color]
Closed Thread