64 lines
1.4 KiB
C#
64 lines
1.4 KiB
C#
using SteamWare;
|
|
using System;
|
|
|
|
namespace WebLCP
|
|
{
|
|
public class BaseUserPage : UserPage
|
|
{
|
|
protected virtual void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
Page.Title = titolo;
|
|
logger.lg.scriviLog($"Richiesta pagina {titolo}", tipoLog.INFO);
|
|
// se ho cambiato pagina registro...)
|
|
if (devicesAuthProxy.pagPrecedente.ToLower() != titolo.ToLower())
|
|
{
|
|
devicesAuthProxy.pagPrecedente = devicesAuthProxy.pagCorrente;
|
|
}
|
|
// salvo pagina corrente
|
|
devicesAuthProxy.pagCorrente = titolo;
|
|
}
|
|
}
|
|
|
|
protected string _nextPage
|
|
{
|
|
get
|
|
{
|
|
string pagina = SteamWare.memLayer.ML.StringSessionObj("nextPage");
|
|
if (pagina == "")
|
|
{
|
|
pagina = "default.aspx";
|
|
}
|
|
return pagina;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Elenco pagine "safe" da web.config
|
|
/// </summary>
|
|
protected string safePages
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.confReadString("_safePages").ToLower();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Restituisce cognome/nome da sessione...
|
|
/// </summary>
|
|
public string CognomeNome
|
|
{
|
|
get
|
|
{
|
|
string answ = "-";
|
|
try
|
|
{
|
|
answ = SteamWare.devicesAuthProxy.stObj.CognomeNome;
|
|
}
|
|
catch
|
|
{ }
|
|
return answ;
|
|
}
|
|
}
|
|
}
|
|
} |