What do validation controls do, internally, on server side to stop to page processing from continuin

B

Brock Allen

They don't stop processing at all; button clicks and other server side events
for normalls. Check Page.IsValid to see if validation failed.
 
B

Brock Allen

Ugg, that meant to read:

They don't stop processing at all; button clicks and other server side events
fire normally. Check Page.IsValid to see if validation failed.
 
S

Steven Cheng[MSFT]

Thanks for Brock's informative inputs.

Hi TS,

The ASP.NET validation control's server-side valiation won't interrupt the
ASP.NET page request's processing. Actually the server-side validation
occurs after Page_Load and before the page's postback event get processing.
Generally, if we care about the validation result, we should
programmatically check the Page.IsValid property and adjust the codelogic
in event handler. Here is a good msdn article discusses on ASP.NET
validation:

#ASP.NET Validation in Depth
http://msdn.microsoft.com/library/en-us/dnaspp/html/aspplusvalid.asp?frame=t
rue

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
S

Steven Cheng[MSFT]

You're welcome TS,

Good luck!

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top