0
You have a few options.
On the model add this attribute to each property that you need to allow HTML - best choice
[AllowHtml]
On the controller action add this attribute to allow all HTML
[ValidateInput(false)]
For detail check the link
http://stackoverflow.com/questions/17254354/asp-net-mvc-a-potentially-dangerous-request-form-value-was-detected-from-the-cli
http://stackoverflow.com/questions/21672855/a-potentially-dangerous-request-form-value-was-detected-from-the-client-mvc4
Accepted 0
Hi,
Add ValidateRequest = "false" in your code.
Web Config :
- <configuration>
- <system.web>
- <httpRuntime requestValidationMode="2.0" />
- </system.web>
- <pages validateRequest="false">
- </pages>
- </configuration>
Reference Code :
- [HttpPost]
- [ValidateInput(false)]
- public ActionResult MyMethod(string s)
- {
- ....
- }
Reference :
http://www.aspsnippets.com/Articles/ASPNet-Error-A-potentially-dangerous-RequestForm-value-was-detected-from-the-client.aspx
http://stackoverflow.com/questions/17254354/asp-net-mvc-a-potentially-dangerous-request-form-value-was-detected-from-the-cli
0
Hi,
Have you checked the below links?
http://stackoverflow.com/questions/4630962/a-potentially-dangerous-request-form-value-was-detected-from-the-client
http://r2d2.cc/2011/05/26/ckeditor-a-potentially-dangerous-request-form-value-was-detected-from-the-client/