Ask a Question related to ASP.NET General, Design and Development.
-
news.public.microsoft.com #1
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 event,
Response.Redirect to another page. The problem is that the client-side
validation occurs before even reaching the event for the Cancel button.
I've tried some ways to disable only the client-side validation, but I find
it a poor design that you can't have a command button bypass the jscript
validation routines.
Anyone found a workaround for this? Surely this problem occured before.
Thanks in advance for any help.
Eric
news.public.microsoft.com 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... -
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.... -
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... -
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... -
only custom validation control does server side validation?
On a CustomValidator you have to provide the validation code because otherwise it doesn't know what to do for the validation. Other validator... -
S. Justin Gengo #2
Re: Cancel validation?
You'll love this!
In the cancel button's properties list find "CausesValidation" and set it to
false.
:)
Justin
"news.public.microsoft.com" <mindmover@hotmail.com> wrote in message
news:OhSL57tSDHA.1588@TK2MSFTNGP11.phx.gbl...find> 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 event,
> Response.Redirect to another page. The problem is that the client-side
> validation occurs before even reaching the event for the Cancel button.
> I've tried some ways to disable only the client-side validation, but I> it a poor design that you can't have a command button bypass the jscript
> validation routines.
>
> Anyone found a workaround for this? Surely this problem occured before.
>
> Thanks in advance for any help.
>
> Eric
>
>
>
S. Justin Gengo Guest
-
Vidar Petursson #3
Re: Cancel validation?
Hi
What about redirecting on the client
cancelbtn.CausesValidation = false;
cancelbtn.Attributes.Add("onclick","location.href= 'theRedirectPage.aspx';
return false");
--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"news.public.microsoft.com" <mindmover@hotmail.com> wrote in message
news:OhSL57tSDHA.1588@TK2MSFTNGP11.phx.gbl...find> 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 event,
> Response.Redirect to another page. The problem is that the client-side
> validation occurs before even reaching the event for the Cancel button.
> I've tried some ways to disable only the client-side validation, but I> it a poor design that you can't have a command button bypass the jscript
> validation routines.
>
> Anyone found a workaround for this? Surely this problem occured before.
>
> Thanks in advance for any help.
>
> Eric
>
>
Vidar Petursson Guest
-
news.public.microsoft.com #4
Re: Cancel validation?
Doh, it was almost jumping at me. I thought that this property controlled
if the control generated validation on the server. Wasn't sure about the
client-side.
Thanks a lot!
"S. Justin Gengo" <gengoj@krause.com> wrote in message
news:vh8695js29dtd7@corp.supernews.com...to> You'll love this!
>
> In the cancel button's properties list find "CausesValidation" and set it> false.
>
> :)
>
> Justin
>
>
> "news.public.microsoft.com" <mindmover@hotmail.com> wrote in message
> news:OhSL57tSDHA.1588@TK2MSFTNGP11.phx.gbl...> find> > 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 event,
> > Response.Redirect to another page. The problem is that the client-side
> > validation occurs before even reaching the event for the Cancel button.
> > I've tried some ways to disable only the client-side validation, but I>> > it a poor design that you can't have a command button bypass the jscript
> > validation routines.
> >
> > Anyone found a workaround for this? Surely this problem occured before.
> >
> > Thanks in advance for any help.
> >
> > Eric
> >
> >
> >
>
news.public.microsoft.com Guest



Reply With Quote

