Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Controling and Limiting Validation


Message #1 by "Michael Gaertner" <mgaert@b...> on Wed, 31 Jan 2001 16:19:27 -0500
My page needs to do server round trips to fill certain fields, but should
only be validated when the user hits 'Save'. I've got the client side
validation turned off via Page_ValidationActive=false. I was hoping to
control server side validation based on which control launched the post
back, but it seems like validation occurs in Page_Load regardless of whether
I do Page.Validate() or not.

I also tried setting the validation controls to Enabled=false, then turning
them back on for my Save button. That doesn't work either because the
controls don't get turned back on until the page renders (duh).

 Any ideas?

 Thanks.


 Michael Gaertner
 Quintech, Inc.
 gaertnerm@q... <mailto:gaertnerm@q...>
  xxx-xxx-xxxx



  Return to Index