Hi.In Asp.net which validation should be preferred,Server-side or Client-side? and why?
I need to know this:)
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sukesh MarlaPosted Oct 6, 2012, 12:31 AM
you just have to check
if(Page.IsValid){}
in button Click.
Deepali PatilPosted Oct 6, 2012, 12:29 AM
That is Custom Validator.
That means i have to use only this control?
Can you gimme a simple example?
Sukesh MarlaPosted Oct 6, 2012, 12:20 AM
Great if you use Asp.net Validation controls, because it does both, It fires server side validation if client side validation fails
http://www.c-sharpcorner.com/UploadFile/SukeshMarla/Asp-Net-validation-control/
Check this is correct answer if it helped.