Code to add the server time to the Who Is Online Page.

This forum is where we'll mirror posts that are of value to the community so they may be more easily found.
Post Reply
User avatar
Hostmaster
Commander (CMDR)
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.

Post by Hostmaster » Tue Feb 26, 2008 10:33 am

Add the server time to the Who Is Online Page.

User avatar
m_plugables
Commander (CMDR)
Commander (CMDR)
Posts: 149
Joined: Tue Mar 11, 2008 12:44 am
Contact:

Reply: Add the server time to the Who Is Online Page.

Post by m_plugables » Wed Mar 19, 2008 1:56 am

Edit the Admin/Reports/WhoIsOnline.aspx page and add following html

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>
just after the the following line of html

Code: Select all

<table align="center" class="form" cellpadding="0" cellspacing="0" border="0"> 
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

protected void Page_Load(object sender, EventArgs e)
    {
        ServerTime.Text = DateTime.Now.ToShortTimeString();
        if (!Page.IsPostBack)
        {
            //initialize form
            ActivityThreshold.Text = "30";
        }
    }

User avatar
Hostmaster
Commander (CMDR)
Commander (CMDR)
Posts: 126
Joined: Fri Jan 04, 2008 3:30 pm
Location: Melbourne Fl
Contact:

Post by Hostmaster » Wed Mar 19, 2008 10:33 am

:D Thanks

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Post by jmestep » Wed Mar 19, 2008 11:52 am

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

Post Reply