在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
aspx页面
<form id="form1" runat="server">
<div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> </div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="执行耗时操作" /><br /> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Ping" /> <asp:Timer ID="Timer1" runat="server" Enabled="False" Interval="1000" OnTick="Timer1_Tick"> </asp:Timer> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> </ContentTemplate> </asp:UpdatePanel> <input id="Text1" type="text" /> </form>
public partial class ThreadTest : System.Web.UI.Page NewThreadWork newThreadWork = new NewThreadWork(); TimeSpan ts = DateTime.Now - dtStart;
public class NewThreadWork public void Run() |
请发表评论