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

by Andrew Jackson 2. November 2004 16: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

Comments

Comments are closed

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen