Connecting Tech Pros Worldwide Help | Site Map

Page.IsValid

Fetty
Guest
 
Posts: n/a
#1: May 10 '06
if "Page.IsValid" comes up false, how can I see what controls are not
valid?

Dave

Hans Kesting
Guest
 
Posts: n/a
#2: May 10 '06

re: Page.IsValid


> if "Page.IsValid" comes up false, how can I see what controls are not[color=blue]
> valid?
>
> Dave[/color]

Page also has a "Validators" property. Loop through it to find the
validators that reported an error. What *inputs* were in error depends
on the specific validator.

Hans Kesting


Peter Morris [Droopy eyes software]
Guest
 
Posts: n/a
#3: May 10 '06

re: Page.IsValid


I wish MS would implement a validator that was not connected to a specific
control, so that validation may be performed on the server and errors
reported back to the client!


Hans Kesting
Guest
 
Posts: n/a
#4: May 10 '06

re: Page.IsValid


> I wish MS would implement a validator that was not connected to a specific[color=blue]
> control, so that validation may be performed on the server and errors
> reported back to the client![/color]

CustomValidator ?
You don't need to tie it to a specific control, and you can specify
both client-side javascript (function call) and server side handler.

Hans Kesting


Closed Thread