Tracking Invalid Postback or Callback Arguments

In my unhandled exception log, I see this error sporadically every other day on this page. I do not have any controls that I programmatically create on the page or bind any buttons on the page.

In my logging, I grabbed the current handler where I know the page and the stack, but stacktrace doesn't give anything meaningful, as it just says it comes down to Page.ProcessPostData.

Is there a way so that I can write more meaningful data? How is it possible that he was published and what he expected to publish?

I can never reproduce it anywhere.

+3
source share
2

, :

if (System.Web.HttpContext.Current != null && System.Web.HttpContext.Current.Request != null) {
    foreach (string key in System.Web.HttpContext.Current.Request.Form.Keys) {
        if (key.IndexOf("__VIEWSTATE") == -1) {
            //key:   key
            //value: System.Web.HttpContext.Current.Request.Form[key]
        }
    }
}
+3

, , , . ? ?

, , / - - , . , , .

, ... ? , , , , , HttpModule. / ProcessRequest? Request .

+2

Source: https://habr.com/ru/post/1723718/


All Articles