Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Validation Summary question


Message #1 by "John Tyson" <jtyson@t...> on Fri, 15 Nov 2002 13:11:20 -0800
<asp:Button ID="..." OnClick="..." CausesValidation="False" Runat="server"/>

At 01:11 PM 11/15/2002 -0800, John Tyson wrote:
>Hi,
>
>I have an aspx Web page form with three buttons: Save, Clear Form, and
>Menu.  When the user clicks "Save" it points to my Validation_Click
>subroutine with If Page.IsValid...etc.
>
>The problem I'm running into is when I click the Clear Form (which is a
>redirect to the same page to refresh) or Menu (redirect to Menu page)
>the Validation Summary control still fires and stops the redirect subs
>from working.  I don't have the phrase "If Page.IsValid" in these subs,
>so why is this happening and what can I do to turn it off for these two
>button clicks?
>
>Thanks,
>
>John

::::::::::::::::::::::::::::::::::
Howard Cheng
http://www.howcheng.com/ <-- NEW!
howcheng at ix dot netcom dot com
AIM: bennyphoebe
ICQ: 47319315


  Return to Index