asp.net 页面上UpdatePanel局部刷新

该实现是:在页面上显示很多内容有滚动条,局部刷新中实现10秒倒计时。

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" >
</asp:ScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >
        <ContentTemplate>
     主题内容
    </ContentTemplate>
</asp:UpdatePanel>

<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" >
        <ContentTemplate>
      <asp:Button ID="btnYes" runat="server" Text="同意(10)" OnClick="btnYes_Click" />
      <asp:Timer ID="Timer1" runat="server" Interval="1000" ontick="Timer1_Tick">
             </asp:Timer>
 </ContentTemplate>
</asp:UpdatePanel>

 

posted @ 2013-10-17 15:33  源起  阅读(344)  评论(0编辑  收藏  举报