In this blog we will know how to display the running time in web page.
Method-1
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Show_time_in_webpage._Default" %>
<!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>Untitled Page</title>
</head>
<body>
<form
id="form1"
runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1"
runat="server">
</asp:ScriptManager>
<asp:Timer ID="Timer1" runat="server" Interval="100" ontick="Timer1_Tick">
</asp:Timer>
<asp:UpdatePanel
ID="UpdatePanel1"
runat="server">
<ContentTemplate>
<asp:Label ID="Label2"
Text="Current
Time:" runat="server"
Font-Bold="True"
ForeColor="#FF9900"></asp:Label>
<asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Maroon"></asp:Label>
<br />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick"></asp:AsyncPostBackTrigger>
</Triggers>
</asp:UpdatePanel>
<br />
</div>
</form>
</body>

Sagar JadhavPosted Nov 29, 2018, 11:48 AM
Good Bro...
Deepak KumarPosted Jun 22, 2012, 5:40 AM
nice post dude
Ashok KumarPosted Jun 22, 2012, 1:28 AM
thanks a lot it helped me more