Ask a Question related to ASP.NET General, Design and Development.
-
Corey Olsen #1
Bypass validation on cancel
Can anyone point me to some documentation on bypassing validation controls
when a user selects cancel?
What I have is a user control with a form to fill out information on a
subject. The user should be presented with two buttons a "Submit" and a
"Cancel". When the "Cancel" button is selected all of the items on the user
control should be cleared. However, I have validation controls setup for
each item necessary on the form and when hitting cancel all of the
validation controls activate preventing cancel from being activated. How
can I make this button "bypass" the validation sequence so that just the
form is cleared?
This seems like it would need to be a javascript handled event on the client
side so that it acts like a 'clear' method and doesn't actually submit
anything. I could write that in to the application but I'm wondering if
there is a way to do this in ASP.NET "style" without having to introduce
javascript.
Thanks,
Corey
Corey Olsen Guest
-
CFFORM Validation trumping Custom Form Validation
Is there any way for custom form validation to work in concert with the cfform validation? I have a custom script that compares the values of two... -
copy and paste form RTF document into field in asp form cause it to bypass field length and javascript validation - how to overcome?
I have a web form with several fields. If I copy & paste from a RTF document into a field, the javascript validation and field length are bypassed... -
Datagrid - cancel Validation
My app is doing all edits in the datagrid footer. The footer has some columns with textboxes and validation controls that look at the textboxes.... -
Cancel validation?
Hi everyone, I have a VB.NET web form with some field validators and Save and Cancel buttons. What I want to do is on the Cancel button On_Click... -
validation summary doesnt display when there's client-side validation
I have a custom validator that validates a numeric field, txtField, that allows for thousand separators. I also placed a validation summary so... -
Jurjen de Groot #2
Re: Bypass validation on cancel
Corey,
I had the same problem but if you set the CauseValidation property of the
cancel button to False your problem is solved.
regards,
Jurjen de Groot
G.I.T.S. Netherlands
"Corey Olsen" <pbyfra@gnyjro.arg> wrote in message
news:e$lPRwyPDHA.1608@TK2MSFTNGP11.phx.gbl...user> Can anyone point me to some documentation on bypassing validation controls
> when a user selects cancel?
>
> What I have is a user control with a form to fill out information on a
> subject. The user should be presented with two buttons a "Submit" and a
> "Cancel". When the "Cancel" button is selected all of the items on theclient> control should be cleared. However, I have validation controls setup for
> each item necessary on the form and when hitting cancel all of the
> validation controls activate preventing cancel from being activated. How
> can I make this button "bypass" the validation sequence so that just the
> form is cleared?
>
> This seems like it would need to be a javascript handled event on the> side so that it acts like a 'clear' method and doesn't actually submit
> anything. I could write that in to the application but I'm wondering if
> there is a way to do this in ASP.NET "style" without having to introduce
> javascript.
>
> Thanks,
> Corey
>
>
Jurjen de Groot Guest



Reply With Quote

