Hi.In Asp.net which validation should be preferred,Server-side or Client-side? and why?
I need to know this:)
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sukesh MarlaRank #461 · 5.4K reputationPosted Oct 5, 2012, 8:31 PM EDT
you just have to check
if(Page.IsValid){}
in button Click.
Sukesh MarlaRank #461 · 5.4K reputationPosted Oct 5, 2012, 8:20 PM EDT
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.
Deepali Patil137 reputationPosted Oct 5, 2012, 8:29 PM EDT
That is Custom Validator.
That means i have to use only this control?
Can you gimme a simple example?