CTP/Beta 1 using GetPostBackEventReference now incorrectly causes full postback instead of partial postback

Last post 10-31-2006 2:42 PM by eviler. 2 replies.

Sort Posts:

  • CTP/Beta 1 using GetPostBackEventReference now incorrectly causes full postback instead of partial postback

    10-26-2006, 12:50 PM
    • Loading...
    • evrbarton
    • Joined on 10-26-2006, 4:36 PM
    • Posts 3

    I just want to concur with an entry from 10/23/06 that GetPostBackEventReference does not work correctly in beta 1 /CTP and causes a full postback  instead of a partial postback.

     Thanks

    Evan.

  • Re: CTP/Beta 1 using GetPostBackEventReference now incorrectly causes full postback instead of partial postback

    10-26-2006, 1:59 PM
    • Loading...
    • evrbarton
    • Joined on 10-26-2006, 4:36 PM
    • Posts 3

    After further investigation of why partial postbacks dont seem to be working correclty when triggered from client side javascript via the GetPostBackEventReference method, I came across something odd. The following is an extract from the HTML source sent to the browser, which was viewed using the 'View Source' menu option from IE.

     

    <script src="/AJAXEnabledWebSite1/WebResource.axd?d=TAVuoWlkDMzV1agoPnjngv9u4lQxxNikBnrocAk0qeJY7EYN7G_mjWfRqrqHVTlWi4nenjrMkinvVXxclOqlz-_j2gMQQJg610DBrUMjva98q4Ku-porHH6HTQzyBd3m_-Wn6DsrUCTLrHLV9ZrDBmBEf_xRBrWTNf70tGvVhTA1&amp;t=632974563067178443" type="text/javascript"></script>
            <script type="text/javascript">
    Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));
    Sys.WebForms.PageRequestManager.getInstance()._updateControls(['txpanel','txpagepanel','txrootpanel'], [], [], 90);
    </script>


        <a onclick="javascript:__doPostBack('__Page','Erb.Web.Layout.Layout')">Base</a><a onclick="javascript:__doPostBack('__Page','Erb.Web.Layout.RootLayout')">Root</a><a onclick="javascript:__doPostBack('__Page','Erb.Web.Layout.MainLayout')">Main</a><a onclick="javascript:__doPostBack('__Page','Erb.Web.Layout.ProductLayout')">Prod</a><div id="xpanel">
     <div id="panel">

     </div>
    </div><div id="xpagepanel">
     <div id="pagepanel">
      <div id="xrootpanel">
       <div id="rootpanel">
        <a onclick="javascript:__doPostBack('__Page','url=Erb.Web.PageContentMainTest')">Main<br></a>
       </div>
      </div>
     </div>
    </div></form>

    Now why does the line :-

    Sys.WebForms.PageRequestManager.getInstance()._updateControls(['txpanel','txpagepanel','txrootpanel'], [], [], 90);

    indicate control IDs of ['txpanel','txpagepanel','txrootpanel'] when the actual IDs are xpanel, xpagepanel and xrootpanel ( which are all update panels )

    Wouldn't that cause a problem when a partial postback was being executed, because the PageRequestManager on the client would not be able to match the IDs correctly ?

     Just a thought.

    Thanks.

  • Re: CTP/Beta 1 using GetPostBackEventReference now incorrectly causes full postback instead of partial postback

    10-31-2006, 2:42 PM
    • Loading...
    • eviler
    • Joined on 10-31-2006, 3:36 PM
    • Posts 1

    anyone know how to fix it?

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter