how the validation controls will work both client/server

Posted by Jameschowdare under Regular Expressions on 12/3/2009 | Views : 2296 | Status : [Member] | Replies : 5
how the validation controls will work both client/server




Responses

Posted by: Vuyiswamb on: 12/4/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Jameschowdare explain your Problem Clearly

Thank you for posting at Dotnetfunda
[Administrator]

Jameschowdare, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jameschowdare on: 12/4/2009 [Member] Starter

Up
0
Down
Hi Vuyiswamb,

validation controls work bother server and client,

my doubt is how they are working both sides

Jameschowdare, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhijit Jana on: 12/4/2009 [Member] [MVP] Bronze

Up
0
Down
Generally ASP.NET Validation Control are worked in Client Side. But, If want to Check that control are validated properly or not Or If some one Disable the Javascript at client it , for that you can use Page.ISValidate() at server site to make sure all control satisfied the validation property. For more details you can have a quick look on MSDN page.

Cheers !
Abhijit

Jameschowdare, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jameschowdare on: 12/4/2009 [Member] Starter

Up
0
Down
if we disable javascript then
(manually written)javascript validation will work?

Jameschowdare, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Virendradugar on: 12/4/2009 [Member] [MVP] Silver

Up
0
Down
That's the disadvantage if you disable the JavaScript and you are using client side validation. In that case, your validation will fail.

It's best practice to validate on the client side as well as on server side. As if your client side validation fails, your server side validation will do the job for you.

Hope this makes sense..


Thanks,
Virendra Dugar

Jameschowdare, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response