I have added a FreeTextBox control in my page, which allows users to insert HTML tag. Well, when I send to the server, I get the following error:
A potentially dangerous Request.Form value was detected from the client (GestisciPagine1_txtTestoPagina="...t homepage
<br><br>
").
Which option do I need to change to avoid this? I only want to change this control. Is it possible?
Which option I need to change to avoid this control ONLY to this control?
You can't do this per control. You need to do it at the page level or for the entire application:
<%@ Page Title="Home Page" Language="C#" ValidateRequest="false" %>
<%= SomeValue %>
where SomeValue
represents HTML, nothing will get encoded - Darin Dimitrov 2012-04-04 11:48