asp.net - 2 update panels always posting back -


i have below page , racking brain why when have 2 update panels both post backs. can tell cause have 2 user controls- 1 in each panel , both fire page load events when left panel should posing , updating itself... or else whats point of update panels if in reality entire page posting back!!!

what missing here?

<asp:content id="stylecontent" contentplaceholderid="style" runat="server"> <link href="../styles/reportwizard.css" rel="stylesheet" type="text/css" /> 


<div class="clearfix"></div>  <div class="wizardcontainer"> <asp:updatepanel runat="server" id="pnlwizard">     <contenttemplate>         <table>             <tr>                 <td>                     <asp:panel runat="server" id="pnlcontainer"  cssclass="leftwindow" />                 </td>             </tr>             <tr><td>                 <input type="hidden" name="rwreport" id="rwreport" />                 <input type="hidden" name="rwproject" id="rwproject" />                 <input type="hidden" name="rwstakeholder" id="rwstakeholder" />                 <input type="hidden" name="rwstakeholdernames" id="rwstakeholdernames" />                 <input type="hidden" name="rwmilestone" id="rwmilestone"/></td>             </tr>             <tr>                 <td align="right">                     <asp:button runat="server" id="cbprev" text="previous" cssclass="rwbutton" onclick="cbprev_click" onclientclick="return updatebc('bwd');" />                     <asp:button runat="server" id="cbnext" text="next" cssclass="rwbutton" onclick="cbnext_click" />                 </td>             </tr>         </table>     </contenttemplate> </asp:updatepanel> 

first, don't specify updatemode properties of updatepanels, default always. means both panels refreshed when 1 of them performs partial postback. need specify these properties , set them conditional.

that said, it's normal both user controls go through load phase on each postback, partial ones. whole page lifecycle takes place during partial postback, during full postback, during partial postback part of resulting page markup sent browser.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -