A Potential Dangerous Request Form value was detected from client("")

editing. Be it ASP.NET or PHP it provides quite a host of features like
fileupload, stylesheets, image uploads etc.
But a very nagging problem that is associated with Fckeditor while using in ASP.NET is the above
titled error.
This error is mostly received when a page containing the Fckeditor server control is loading and
suddenly the user clicks on any other link/button on the page before the current page loads
completely.
Keep in mind that this is a ASP.NET security feature.
A very simple solution to this problem is to set the Page Directives ValidateRequest property to
false. This can be set in the first line of the aspx page as follows..
<%@ Page language="C#" CodeFile="index.aspx" Inherits="Index.aspx.cs" ValidateRequest="false" %>
Note: ValidateRequest is a ASP.NET security mechanism that protects a website from Cross Side Scripting attacks. Disabling this would leave your site vulnerable to such attacks! You can find more about this CSC by googling around.
No comments:
Post a Comment