Files
MoonPro.net/MP-ADM/login.aspx.cs
T

35 lines
999 B
C#

using System;
namespace MP_ADM
{
public partial class login : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
mod_login.modoLogin = SteamWare.loginMode.normale;
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
mod_login.Login_ok += new EventHandler(mod_login_Login_ok);
mod_login.Login_Error += new EventHandler(mod_login_Login_Error);
}
void mod_login_Login_Error(object sender, EventArgs e)
{
Response.Redirect("./unauthorized.aspx");
}
void mod_login_Login_ok(object sender, EventArgs e)
{
Response.Redirect(_nextPage);
}
protected override void OnUnload(EventArgs e)
{
base.OnUnload(e);
mod_login.Login_ok -= new EventHandler(mod_login_Login_ok);
mod_login.Login_Error -= new EventHandler(mod_login_Login_Error);
}
}
}