Search This Blog

Oct 18, 2011

VALIDATING USER INPUT

Always validate all user input, whenever you have a public web site on the internet, you lose the ability to control its users.
Always provide a useful messages in your validation controls. Either assign the error message to the ErrorMessage property and leave the Text empty.
Consider the CssClass attribute of the validation controls to move the style deffinitions for the error messages to a separate CSS file.
When storing data in text or xml files, always store them in App_Data folder that is designed specifically for this purpose.

No comments:

Post a Comment