خسته نباشید.
در داخل فرم که به صورت POST ارسال می شود، از ckeditor استفاده کردم. وقتی حرفی داخل ادیتور مینویسم و ارسال میکنم خطا میده ولی وقتی خالی ارسال میکنم مشکلی نیست. میخواستم بدونم چطور این مشکل رو برطرف کنم.
A potentially dangerous Request.Form value was detected from the client (txa_Text="<p>متن تستی</p>
").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (txa_Text="<p>متن تستی</p>
").
[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (txa_Text="<p>متن تستی</p> ").] System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) +8734578 System.Web.HttpRequest.ValidateNameValueCollection (NameValueCollection nvc, String collectionName) +111 System.Web.HttpRequest.get_Form() +129 System.Web.HttpRequest.get_HasForm() +8734679 System.Web.UI.Page.GetCollectionBasedOnMethod(Bool ean dontReturnNull) +97 System.Web.UI.Page.DeterminePostBackMode() +63 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242 System.Web.UI.Page.ProcessRequest() +80 System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.default_aspx.ProcessRequest(HttpContext context) +4 System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +75