ASP.NET Ajax Error: Sys.WebForms.PageRequestManagerParserErrorException

后端 未结 15 735
轻奢々
轻奢々 2020-12-05 18:20

My website has been giving me intermittent errors when trying to perform any Ajax activities. The message I get is

Sys.WebForms.PageRequestManagerP         


        
15条回答
  •  伪装坚强ぢ
    2020-12-05 18:55

    Problem: Sys.WebForms.PageRequestManagerParserErrorException will occur when redirecting your page, lets say button click inside UpdatePanel in aspxAjax.

    SOlution:

    1. Add a "GoTo" button in your aspx page where update panel is using and add it outside Update panel

    2. In your code assign ur just registered userID to session variable , say Session["UseridJustregistered"]=Id from DB or UsernameField

    3. Respose.Redirect("regSucces.aspx?urlid='" + Session["UseridJustregistered"] + "'");

    4. Check if Session["UseridJustregistered"] is null or not

    This is OLD Classic ASP way which can solve our problem , by the time Microsoft find a solution we can tackle it this way.

提交回复
热议问题