Allowing HTML to be entered into text boxes on ASP.net

by Andrew Jackson 2. November 2004 09:43

ASP.net adds very handy functionality by default, in that it throws an error if your form contains any html on it's submission.  Handy for html injection techniques, but not if your writing an entry form for techies that requires it.

To disable this validation add the following code to your aspx pages, just remember you've done it and the consequences of doing so.

<%@ Page Language="VB" validateRequest="false" CodeBehind= etc etc etc %>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.net | Development

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About Me

Andrew Jackson

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008,2009 Andrew K. Jackson

RecentComments

Comment RSS