edc41cd8f7
fatti installer SP ( prod/test )
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
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);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// imposta il tempo di scadenza del timer x il refresh della pagina (della parte top) per evitare che la sessione sul server scada
|
|
/// </summary>
|
|
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...)
|
|
}
|
|
}
|
|
} |