Allow CMS user to add HTML to sql database row?

I'd like to let my user add HTML to an entry in a SQL Server table using the CMS, but I keep getting the warning:

System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$MainContent$TextBox2="<p>We...

What is the best way to allow HTML to be added to my CMS?

Many thanks

Answers


You can enable/disable request validation on a per control, per page, or on application level. See http://www.asp.net/learn/whitepapers/request-validation for more info.

Be aware that if you're using asp.net 4.0 you might have to set the requestValidationMode as well (see ValidateRequest="false" doesn't work in Asp.Net 4)


Need Your Help

Mix CATextLayer and CAScrollLayer

iphone objective-c ios catextlayer quartz-core

I need a scrollable CATextLayer to display a NSAttributedString.

Is there any advantage of using XMLHttpRequest over $.ajax (JQuery)?

php jquery ajax xmlhttprequest

I understand that $.ajax is utilizing XMLHttpRequest to accomplish the same task and that there is a slight difference in terms of speed,I also realize that XHR can be tailor-made to meet my requir...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.