Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Re: Controling and Limiting Validation


Message #1 by "Lenny Liu" <lennyl@f...> on Mon, 14 May 2001 18:53:37
Try setting controls to Visible = false.

Lenny


> 
> 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