using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using SteamWare; namespace GLS.WebUserControls { public partial class mod_menuBottomFullpage : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { //// sistemo le stringhe... lblApp.Text = string.Format("{0} v.{1}.{2}", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev"), ConfigurationManager.AppSettings.Get("minRev")); lblCopyRight.Text = string.Format("{0}{1}", ConfigurationManager.AppSettings.Get("copyRight"), DateTime.Now.Year); setTimer(); setClock(); } /// /// imposta il tempo di scadenza del timer x il refresh della pagina (della parte top) per evitare che la sessione sul server scada /// private void setTimer() { Timer1.Interval = SteamWare.memLayer.ML.confReadInt("intUpdatePagina_ms"); } protected void Timer1_Tick(object sender, EventArgs e) { setClock(); } private void setClock() { string postazione_IP = Request.UserHostName; lblDateTime.Text = DateTime.Now.ToString("HH:mm:ss"); lblInfo.Text = ""; try { lblInfo.Text += string.Format("{0}", dnsUtils.DetermineCompName(postazione_IP)); } catch { } try { lblInfo.Text += string.Format(" ({0})", postazione_IP); } catch { } } } }