asp.net - Asp tabpanel updating all tabs -


i working on webpage displays online users in tabpanel, , want have update every x amount of seconds. part works; however, of other tabs in tabcontainer update too, not want. here code online user tab

<cc1:tabpanel runat="server" headertext="online users" id="tabpanel1">      <contenttemplate>                 <div>             <div style="position:relative; text-align:left; width:650px; top: 0px; left: 0px;">                 <asp:label id="lblupdate" runat="server" text="this page refreshed automatically every 10 seconds, or press update button right"></asp:label>             </div>         </div>          <asp:timer runat="server" id="timer1" interval="10000"></asp:timer>         <asp:timer runat="server" id="timer2" interval="9000"></asp:timer>          <asp:updatepanel runat="server" id="updateonlineusers" updatemode="conditional">               <triggers>                 <asp:asyncpostbacktrigger controlid="timer1" />                 <asp:asyncpostbacktrigger controlid="timer2"  />             </triggers>              <contenttemplate>                   <div style="text-align:right; position:relative; top:-20px">                     <asp:image style="position:relative; display:none; z-index:1" id="image1" runat="server" imageurl="../images/reload.gif" />                     <asp:imagebutton id="imagebutton1" style="position:relative; z-index:2" runat="server" imageurl="../images/reload5.png" />                   </div>                                 <div>                                         <asp:label id="lblusercount" runat="server"></asp:label>                 </div>                 <div>                     <asp:label id="lblofflineusers" runat="server"></asp:label>                 </div>                 <div>                     <asp:label runat="server" id="lblonlineusers">hi everybody</asp:label>                 </div>                                 </contenttemplate>         </asp:updatepanel>         </contenttemplate>     </cc1:tabpanel> 

thanks in advance!

move timers out of tabpanel. possibly you'll need register timers asyncpostbacktriggers manually code-behind after that.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -