Hi,
we need some information why when in any filed in a Form on Microsoft Portals when adding the following character format "<test> test" with the combination of < > and just some text in between we generate the following error:
Server Error in '/' Application.
A potentially dangerous Request.Form value was detected from the client (ctl00$ContentContainer$EntityFormControl_9da592ee63ede811a965000d3ab1ab19$EntityFormControl_9da592ee63ede811a965000d3ab1ab19_EntityFormView$title="<test> test").
Description: ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script. The data might represent an attempt to compromise the security of your application, such as a cross-site scripting attack. If this type of input is appropriate in your application, you can include code in a web page to explicitly allow it. For more information, see go.microsoft.com/.../
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$ContentContainer$EntityFormControl_9da592ee63ede811a965000d3ab1ab19$EntityFormControl_9da592ee63ede811a965000d3ab1ab19_EntityFormView$title="<test> test").
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$ContentContainer$EntityFormControl_9da592ee63ede811a965000d3ab1ab19$EntityFormControl_9da592ee63ede811a965000d3ab1ab19_EntityFormView$title="<test> test").]
System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +11968679
System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection) +200
System.Web.HttpRequest.get_Form() +59
System.Web.HttpRequest.get_HasForm() +11969054
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +106
System.Web.UI.Page.DeterminePostBackMode() +85
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9458
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +345
System.Web.UI.Page.ProcessRequest() +75
System.Web.UI.Page.ProcessRequest(HttpContext context) +70
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88
|
how do get rid of this error?
best regards
Martin