Code to add the server time to the Who Is Online Page.
Posted: Tue Feb 26, 2008 10:33 am
Add the server time to the Who Is Online Page.
http://forums.ablecommerce.com/
Code: Select all
<tr class="noPrint">
<td>
<asp:Label ID="ServerTimeLabel" runat="server" EnableViewState="false" Font-Bold="true">Server Time: </asp:Label>
<asp:Label ID="ServerTime" runat="server" EnableViewState="false" />
</td>
</tr>
Code: Select all
<table align="center" class="form" cellpadding="0" cellspacing="0" border="0">
Code: Select all
protected void Page_Load(object sender, EventArgs e)
{
ServerTime.Text = DateTime.Now.ToShortTimeString();
if (!Page.IsPostBack)
{
//initialize form
ActivityThreshold.Text = "30";
}
}