2009-11-19 2 views

ответ

0

RequestValidation срабатывает очень рано на протяжении всего жизненного цикла.

Эти события & методы пожара, а затем в точке ОпределитьPostBackMode запрос завершается.

  • ExecuteStep
  • Execute
  • BeginProcessRequest
  • ProcessRequestInternal
  • ProcessRequestWithNoAssert
  • РгосеззКедиез
  • ProcessRequestMain
  • DeterminePostBackMode

Вот пример stacktrace из исключения HttprequestValidationException.

at System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) 
at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) 
at System.Web.HttpRequest.get_Form() 
at System.Web.HttpRequest.get_HasForm() 
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) 
at System.Web.UI.Page.DeterminePostBackMode() 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
at System.Web.UI.Page.ProcessRequest() 
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) 
at System.Web.UI.Page.ProcessRequest(HttpContext context) 
at ASP.register_aspx.ProcessRequest(HttpContext context) in d:\Temporary ASP.NET Files\belfast\09a30891\d8a3024a\App_Web_fxdlie1w.16.cs:line 0 
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

Спасибо,

Фил.

+0

Можем ли мы получить доступ к значению ValidateRequest для CodeBehind ..? Это мое фактическое требование –

Смежные вопросы