<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      [轉(zhuǎn)]Sys.WebForms.PageRequestManagerParserErrorException @ MS Ajax

      [原文]Sys.WebForms.PageRequestManagerParserErrorException @ MS Ajax

      Spending a weeks to troubleshoot the "Sys.WebForms.PageRequestManagerParserErrorException" error in my company’s project.

      Finally I found the workaround for it. Very easy, just disable the enableEventValidation on the ASPX page containing the UpdatePanel.

      If this workaround doesn’t work for you, you should probably look @ Eilon Lipton’s Blog. Here is some of his findings:

      Why do I keeping getting a PageRequestManagerParserErrorException?

      Well, chances are you’re doing one of the things mentioned in the error message. Here are the most common reasons and why they don’t work:

      1. Calls to Response.Write():
        By calling Response.Write() directly you are bypassing the normal rendering mechanism of ASP.NET controls. The bits you write are going straight out to the client without further processing (well, mostly…). This means that UpdatePanel can’t encode the data in its special format.

      2. Response filters:
        Similar to Response.Write(), response filters can change the rendering in such a way that the UpdatePanel won’t know.

      3. HttpModules:
        Again, the same deal as Response.Write() and response filters.

      4. Server trace is enabled:
        If I were going to implement trace again, I’d do it differently. Trace is effectively written out using Response.Write(), and as such messes up the special format that we use for UpdatePanel.

      5. Calls to Server.Transfer():
        Unfortunately, there’s no way to detect that Server.Transfer() was called. This means that UpdatePanel can’t do anything intelligent when someone calls Server.Transfer(). The response sent back to the client is the HTML markup from the page to which you transferred. Since its HTML and not the special format, it can’t be parsed, and you get the error.

      How do I avoid getting a PageRequestManagerParserErrorException?

      To start with, don’t do anything from the preceding list! Here’s a matching list of how to avoid a given error (when possible):

      1. Calls to Response.Write():
        Place an <asp:Label> or similar control on your page and set its Text property. The added benefit is that your pages will be valid HTML. When using Response.Write() you typically end up with pages that contain invalid markup.

      2. Response filters:
        The fix might just be to not use the filter. They’re not used very often anyway. If possible, filter things at the control level and not at the response level.

      3. HttpModules:
        Same as response filters.

      4. Server trace is enabled:
        Use some other form of tracing, such as writing to a log file, the Windows event log, or a custom mechanism.

      5. Calls to Server.Transfer():
        I’m not really sure why people use Server.Transfer() at all. Perhaps it’s a legacy thing from Classic ASP. I’d suggest using Response.Redirect() with query string parameters or cross-page posting.

      Another way to avoid the parse error is to do a regular postback instead of an asynchronous postback. For example, if you have a button that absolutely must do a Server.Transfer(), make it do regular postbacks. There are a number of ways of doing this:

      1. The easiest is to simply place the button outside of any UpdatePanels. Unfortunately the layout of your page might not allow for this.

      2. Add a PostBackTrigger to your UpdatePanel that points at the button. This works great if the button is declared statically through markup on the page.

      3. Call ScriptManager.RegisterPostBackControl() and pass in the button in question. This is the best solution for controls that are added dynamically, such as those inside a repeating template.

      posted @ 2009-03-23 13:59  DukeCheng  閱讀(325)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 广州市| 男女啪祼交视频| 国产精品熟女一区二区三区| 岫岩| 偷拍专区一区二区三区| 久久国内精品自在自线91| 亚洲国产精品综合久久20| 国产精品福利在线观看无码卡一| 亚洲中文字字幕精品乱码| 国产一区韩国主播| 日韩无专区精品中文字幕| 无码一区二区三区免费| 69精品无人区国产一区| 国产精品不卡一二三区| 欧美交a欧美精品喷水| 蜜臀av久久国产午夜福利软件| 国产精品一区二区黄色片| 日韩卡一卡2卡3卡4卡| 亚洲成a人片在线观看中 | 久久综合久中文字幕青草| 粉嫩一区二区三区国产精品| 毛葺葺老太做受视频| 蜜桃一区二区三区免费看| 家居| 亚洲av午夜成人片| 国产高清在线精品一区二区三区| 亚洲久悠悠色悠在线播放| 国产在线精品欧美日韩电影 | 国产一区二区三区怡红院| 日本丰满护士bbw| 精品一卡2卡三卡4卡乱码精品视频| 樱桃视频影院在线播放| 国产日韩另类综合11页| 欧美喷潮最猛视频| 国产日产亚洲系列最新| 国产精品午夜福利视频| 无码中文字幕人妻在线一区| 国产SUV精品一区二区6| 国产在线精彩自拍视频| 亚洲午夜无码av毛片久久| 久久精品视频这里有精品|