how to handle both client side validation and sever side validation at same time

Posted by Deepakji under C# on 3/30/2012 | Points: 10 | Views : 746 | Status : [Member] | Replies : 2
hi, in my project i have both client side validation and server side validation but the problem is that if client side validation are working so server side are not working and reversal so please let me know how can we do that . its too urgent.




Responses

Posted by: Subhacomm on: 3/30/2012 [Member] Starter | Points: 25

Up
0
Down
Try to send some piece of code, otherwise it's to tough to find the bug...

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

Posted by: Rajni.Shekhar on: 3/30/2012 [Member] Bronze | Points: 25

Up
0
Down
you can use onclientclick and onserverclick event
or you can use following lines to add javascript function to validate

this.controlID.Attribute.Add("OnClick")="javascript:return functionname();";

it will run javascript function first if it returns true, it will check server side validation.

Thanks,
Rajni Shekhar

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

Login to post response