Validation control

Question posted on 10 2010
Rate question difficulty level 1 Votes
Validation controls are server side control then why microsoft included in tool box. I think its better to check in client side. Whats main purpuse of validation control?
 
 
7 Answers
 
The validation controls always perform validation checking in server code. However, if the user is working with a browser that supports DHTML, the validation controls can also perform validation using client script. With client-side validation, any errors are detected on the client when the form is submitted to the server. If any of the validators are found to be in error, the submission of the form to the server is cancelled and the validator's Text property is displayed. This permits the user to correct the input before submitting the form to the server. Field values are revalidated as soon as the field containing the error loses focus, thus providing the user with a rich, interactive validation experience.

Note that the Web Forms page framework always performs validation on the server, even if the validation has already been performed on the client. This helps prevent users from being able to bypass validation by impersonating another user or a preapproved transaction.

Client-side validation is enabled by default. If the client is capable, uplevel validation will be performed automatically. To disable client-side validation, set the page's ClientTarget property to "Downlevel" ("Uplevel" forces client-side validation). Alternatively, you can set an individual validator control's EnableClientScript property to "false" to disable client-side validation for that specific control.


10/27/2010
 
 
Server Side validation is done to protect your code from a malicious user who might know how to get around your javascripts.Also javascript is not always enabled for all users.


10/27/2010
 
 
Good acdive. I have been seriously stepping up my contracting game over the past 6 months, and along with technical skills, my business skills are rapidly maturing. You could not be more right about understanding expectations, especially when negotiating contracts that are worth big money.And yes, I think we have all been there with the I cost a company $XX,000 in development and they hate the work'. Death March, anyone?

02/18/2012
 
 

02/19/2012
 
 
Hey There. I found your blog using msn. This is an extremely well written article. I will make sure to bookmark it and come back to read more of your useful information. Thanks for the post. I will certainly comeback.

tramadol online auto insurance quote

02/19/2012
 
 
Paki, aunque con retraso, te comunico que todos los que lo solicist teis a trav s de los coemntarios est is admitidos/as

cheap auto insurance online classic car insurance

03/11/2012
 
 
Paki, aunque con retraso, te comunico que todos los que lo solicist teis a trav s de los coemntarios est is admitidos/as

free car insurance quotes low income health insurance

03/14/2012
 
 
Add an answer*
 
Your name
Email
 
Location: India

add a question

arrow_blue


Now hiring!
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------