Click here to Skip to main content
15,878,231 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i did Google search i got the results like this

1. here in tag there is runat="Server" so these are server side controls
2. These are both Client and Server side

supose it is both(Client and Server)

Then some of people using JavaScript for validations why?


Can any one please clarify my doubt
Posted

ASP.Net validation controls are server side controls, meaning you can set values on them in C# code. However, the actual validation takes place on the client side.

Some people use JavaScript because it gives you more flexibility. It just all depends on what you want to do. There is no right or wrong way to do it.

However, even though you validate client side you should still always validate server side because client side can be manipulated by the user.
 
Share this answer
 
Validation controls are server side as you know we use runat = "server" but it's perform validation at client side.
 
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