mirror of
https://github.com/bvanroll/cs-oo-project.git
synced 2025-08-29 20:12:40 +00:00
yup
This commit is contained in:
37
Online Gokkantoor/Gui/Login.aspx.cs
Normal file
37
Online Gokkantoor/Gui/Login.aspx.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using Logic;
|
||||
|
||||
namespace Gui
|
||||
{
|
||||
|
||||
public partial class Login : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
LogicLayer logic = (LogicLayer)System.Web.HttpContext.Current.Application["logic"];
|
||||
lstUsers.DataSource = logic.persons;
|
||||
lstUsers.DataBind();
|
||||
}
|
||||
}
|
||||
protected override void OnInitComplete(EventArgs e)
|
||||
{
|
||||
base.OnInitComplete(e);
|
||||
}
|
||||
protected override void OnPreLoad(EventArgs e)
|
||||
{
|
||||
base.OnPreLoad(e);
|
||||
}
|
||||
public void Login_Click(object o, EventArgs e)
|
||||
{
|
||||
HttpContext.Current.Application["user"] = lstUsers.SelectedItem;
|
||||
Server.Transfer("mainForm.aspx");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user