I need send html. I get error(this machine transalate):
Detected a potentially dangerous value of Request.Form, received from the client (Description = "eqqdaqd asda
Description: The procedure of verification requests found potentially dangerous client input value, the query processing is interrupted. This value may indicate an attempt to compromise the security of applications, such as attacks by "cross-site scripting". To allow pages override default scan request an application, see httpRuntime configuration attribute to set the requestValidationMode requestValidationMode = "2.0". Example: . After setting this value, you can disable request validation by setting validateRequest = "false" in the Page directive or the configuration section . However, in this case are urged in the application explicitly check all the entries. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.
public ActionResult Create()
{
this.ValidateRequest = false;
return View();
}
//
// POST: /Admin/News/Create
[HttpPost]
public ActionResult Create(NewsView model)
{
this.ValidateRequest = false;
try
{
//logic
return RedirectToAction("Index");
}
catch
{
return View();
}
}
This controller is in the arena admin. I set in web.config
<system.web>
<httpRuntime requestValidationMode="2.0" />