Files
WebGIM/WebSites/WebGIM/forceUser.aspx.cs
T
samuele e0a96794cc - Aggiunta cartella DB
- Aggiunti progetti deploy/install (completare customizzazione installer!!!)

git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@2 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
2009-01-08 16:21:31 +00:00

55 lines
1.4 KiB
C#

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;
public partial class forceUser : System.Web.UI.Page
{
protected string _nextPage
{
get
{
string pagina = SteamWare.memLayer.ML.StringSessionObj("nextPage");
if (pagina == "")
{
pagina = "menu.aspx";
}
return pagina;
}
}
protected void Page_Load(object sender, EventArgs e)
{
Mod_login1.modoLogin = SteamWare.loginMode.forceUser;
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
Mod_login1.Login_ok += new EventHandler(Mod_login1_Login_ok);
Mod_login1.Login_Error += new EventHandler(Mod_login1_Login_Error);
}
void Mod_login1_Login_Error(object sender, EventArgs e)
{
//Response.Redirect("./unauthorized.aspx");
}
void Mod_login1_Login_ok(object sender, EventArgs e)
{
Response.Redirect(_nextPage);
}
protected override void OnUnload(EventArgs e)
{
base.OnUnload(e);
Mod_login1.Login_ok -= new EventHandler(Mod_login1_Login_ok);
Mod_login1.Login_Error -= new EventHandler(Mod_login1_Login_Error);
}
}