Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Comments
Maarten Kools 6-Aug-13 9:13am    
What have you tried?
[no name] 6-Aug-13 9:38am    
You can use the custom validator to custom your requirement.
Ashutosh Mahto 6-Aug-13 9:47am    
How are you recognizing whether user belongs to Eng or India? Is there any DropDownList or something else?

1 solution

Hi,

please check this links, it will help you.

http://www.w3schools.com/aspnet/aspnet_refvalidationcontrols.asp[^]

Exploring ASP.NET Validation Controls[^]

Hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900