using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using SteamWare; namespace GMW_RT { public partial class Bootstrap : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { setTimer(); string[] uri = Request.Url.LocalPath.Split('/'); // salvo pagina corrente user_std.pagCorrente = uri.Last(); lblVers.Text = string.Format("v.{0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version); } } /// /// 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) { // non faccio nulla (faranno reload pagine content...) } } }