Biplob Bipul

Biplob Bipul

  • NA
  • 10
  • 3.2k

message show/hidden after some time , Using .NET(Timer)

Aug 19 2015 5:38 AM
ASPX:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="2000">
</asp:Timer>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
</Triggers>
</asp:UpdatePanel>
 
.CS:
protected void Timer1_Tick(object sender, EventArgs e)
{
Label1.Text= "this message after 5sec automatiacaly will hidden, aftter 30 sec it again show"
}
 
 
Please give me a solution how way can I solve it.
 
 

Answers (4)