Initial Commit

This commit is contained in:
Daniel Cortés
2019-12-12 04:06:08 -03:00
commit 3132ecc900
36 changed files with 3190 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class base_page : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
if(Session["username"] == null)
{
Response.Redirect("login.aspx");
return;
}
username_literal.Text = Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(Session["username"].ToString());
time_label.InnerText = DateTime.Now.ToLongDateString();
}
protected void onCerrarSesionClick(object sender, EventArgs e)
{
Session["username"] = null;
Response.Redirect("login.aspx");
}
}