Code to add the server time to the Who Is Online Page.
- Hostmaster
- Commander (CMDR)
- Posts: 126
- Joined: Fri Jan 04, 2008 3:30 pm
- Location: Melbourne Fl
- Contact:
Code to add the server time to the Who Is Online Page.
Add the server time to the Who Is Online Page.
- m_plugables
- Commander (CMDR)
- Posts: 149
- Joined: Tue Mar 11, 2008 12:44 am
- Contact:
Reply: Add the server time to the Who Is Online Page.
Edit the Admin/Reports/WhoIsOnline.aspx page and add following html
just after the the following line of html
then edit the Admin/Reports/WhoIsOnline.aspx.cs file and edit
protected void Page_Load(object sender, EventArgs e)
function to look like
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">
protected void Page_Load(object sender, EventArgs e)
function to look like
Code: Select all
protected void Page_Load(object sender, EventArgs e)
{
ServerTime.Text = DateTime.Now.ToShortTimeString();
if (!Page.IsPostBack)
{
//initialize form
ActivityThreshold.Text = "30";
}
}
- Hostmaster
- Commander (CMDR)
- Posts: 126
- Joined: Fri Jan 04, 2008 3:30 pm
- Location: Melbourne Fl
- Contact:
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Somebody send Mazar some Pepsi- we need to keep him around.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx