局部刷新多个区域,每个区域设定倒计时。aspx:
         <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>        
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Timer ID="Timer1" runat="server" Interval="5000" OnTick="Timer1_Tick" Enabled="false" ></asp:Timer>
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
         
        </ContentTemplate>
        </asp:UpdatePanel>
        
        
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:Timer ID="Timer2" runat="server" Interval="5000" OnTick="Timer2_Tick" Enabled="false" ></asp:Timer>
            <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
            <asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button2_Click" />
        </ContentTemplate>
        </asp:UpdatePanel>aspx.cs:
      protected void Timer1_Tick(object sender, EventArgs e)
    {
        Label1.Text = "定时器1";
    }
    protected void Timer2_Tick(object sender, EventArgs e)
    {
        Label2.Text = "定时器2";
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Timer1.Enabled = true;
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Timer2.Enabled = true;
    }为什么Timer2不执行?