__doPostBack is not defined

后端 未结 26 2123
不知归路
不知归路 2020-12-09 08:12

Im getting that error when try to call a __doPostBack on one of my pages, every page that i have in the project use __doPostBack function but in this particular page im gett

26条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 08:24

    For me it was the fact that I was using a custom User-Agent Header of User-Agent: This is a Test, please ignore.

    This is because IIS ASP.NET Webforms generates web pages depending on the User-Agent string.

    To fix it, I included the browser types, plus a message at the end, i.e.

    User-Agent: Mozilla/5.0 (X11; Linux x86_64) Chrome/75.0.3770.80 (This is a Test, please ignore)
    

    And the page started running correctly again.

提交回复
热议问题