Thursday, March 29, 2012

Server Side Validation

Hi, i was wondering if asp.net validation controls validate on the server. I did a test turning off javascript and i got an error on my page which indicates to me that the server side validation did not take place. If the validation controls allow for server side validation then how do i enable it?

Appreciate your help.

Thanks

Yes, they validate on the server. Add a test for Page.IsValid is true in your post back event handler method (such as the Click method of a button). See this article for an example and many other common validation questions:http://aspalliance.com/699.

0 comments:

Post a Comment