<asp:updatepanel id="UpdatePanel1" runat="server" updatemode="Conditional" childrenastriggers="true" xmlns:asp="#unknown"> <contenttemplate> <asp:label id="lbl_msg" runat="server" forecolor="Red" font-bold="False" font-size="Small"></asp:label> <asp:timer id="Timer1" runat="server" interval="5000"> </asp:timer> </contenttemplate> <triggers> <asp:asyncpostbacktrigger controlid="Timer1" eventname="Tick" /> </triggers> </asp:updatepanel>
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick Dim time1 As TimeSpan = New TimeSpan time1 = Convert.ToDateTime(Session("time")) - DateTime.Now If time1.Seconds <= 0 Then lbl_msg.Text = "" Else End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)