timer 与 updatepanel
2011-10-06 17:12
155 查看
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="WebApplication9.WebForm3" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="Timer1" /> </Triggers> </asp:UpdatePanel> </div> <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label> </ContentTemplate> </asp:UpdatePanel> <asp:Timer ID="Timer1" runat="server" Interval="1000" ontick="Timer1_Tick"></asp:Timer> </form> </body> </html>
相关文章推荐
- ASP.NET - 演练:对多个 UpdatePanel 控件使用 ASP.NET Timer 控件
- ASP.NET AJAX(服务器控件 UpdatePanel、Timer、UpdateProgress)
- 简单地过一下五个控件(ScriptManager、ScriptManagerProxy、UpdatePanel、 UpdateProgress和Timer
- Microsoft Asp.Net Ajax框架入门(10) ScriptManager, UpdatePanel, Timer
- ajax中 同一页面中 UpdatePanel 区别 更新多个区域的关键 timer使用方法
- ASPX的Timer位置没放正确,导致整页刷新,而不是UpdatePanel里的内容刷新。
- 通过Timer和UpdatePanel控件实现NBA比赛的文字直播
- Microsoft Asp.Net Ajax框架入门(10) ScriptManager, UpdatePanel, Timer
- 【ASP.NET】Ajax下UpdatePanel和Timer的综合应用
- 简单地过一下五个控件(ScriptManager、ScriptManagerProxy、UpdatePanel、 UpdateProgress和Timer)
- 第一次在项目中用AJAX就受到严重打击 UpdatePanel+Timer
- ASP.NET AJAX就5个控件,分别是ScriptManager、ScriptManagerProxy、UpdatePanel、UpdateProgress和Timer
- 系统学习asp.net Ajax中GridView、UpdatePanel、UpdateProgress、Timer使用
- ASP之利用updatepanel和Timer实现局部定时刷新
- Asp.net中的Timer与updatepanel控件
- ASP.NET AJAX(1) - 简单地过一下每个控件(ScriptManager、ScriptManagerProxy、UpdatePanel、 UpdateProgress和Timer)
- ASP之利用updatepanel和Timer实现局部定时刷新
- ASP.NET AJAX - 简单地过一下每个控件(ScriptManager、ScriptManagerProxy、UpdatePanel、 UpdateProgress和Timer)
- Microsoft Asp.Net Ajax框架入门(10) ScriptManager, UpdatePanel, Timer
- 【ASP.NET】利用UpdatePanel、ScriptManager、Timer完成定时局部更新