Friday, May 04, 2007

Allow html tags in textbox fileds asp.net

HTML tags can be allowed in asp.net pages by having the following attributes in the page level for a particular page.

validateRequest="false"

eg. <%@ Page Language="C#" validateRequest="false" at the top of the aspx page.

Or

add the
<system.web>
    <pages validateRequest="false">

on your web.config for all the pages.

Happy programming,
Anton

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home