How to put conditional validation in aspx page

Posted by Sahoo under C# on 8/6/2013 | Points: 10 | Views : 903 | Status : [Member] | Replies : 2
Hi,

I have an aspx page with around 30 controls.
I want to apply some validation on condition.
Let say , for Eng user Address1 will mandatory not for French user.
For India postcode will be mandatory .


Many many thanks in advance.




Responses

Posted by: Ssj_Kumar on: 8/12/2013 [Member] Starter | Points: 25

Up
0
Down
you can group the control, please find the below link have some sample which may help you
http://www.w3schools.com/aspnet/prop_webcontrol_imagebutton_validationgroup.asp

Regards,
Jayakumar Selvakani

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

Posted by: Ssj_Kumar on: 8/12/2013 [Member] Starter | Points: 25

Up
0
Down
Example from microsoft site
http://msdn.microsoft.com/en-us/library/ms227424(v=vs.100).aspx

Regards,
Jayakumar Selvakani

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

Login to post response