CNSA-216-FP/FWA_MAIN/main.aspx.cs
2024-04-04 01:07:20 -04:00

72 lines
1.8 KiB
C#

using System;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FWA_MAIN
{
public partial class main : MasterPage
{
public bool navIsVisible = true;
protected void Page_Load(object sender, EventArgs e)
{
}
// protected void btnToggleNav_OnClick(object sender, EventArgs e)
// {
//
// if(navIsVisible)
// {
// btnToggleNav.Width = Unit.Percentage(0);
// navIsVisible = false;
// }
// else
// {
// btnToggleNav.Width = Unit.Percentage(8);
// navIsVisible = true;
// }
// }
protected void home_OnClick(object sender, EventArgs e)
{
Response.Redirect("Default.aspx");
}
protected void btnPatient_OnClick(object sender, EventArgs e)
{
Response.Redirect("patSearch.aspx");
}
protected void btnPhysician_OnClick(object sender, EventArgs e)
{
Response.Redirect("physician.aspx");
}
protected void btnMedication_OnClick(object sender, EventArgs e)
{
Response.Redirect("MediSearch.aspx");
}
protected void btnPrescription_OnClick(object sender, EventArgs e)
{
Response.Redirect("Prescription.aspx");
}
protected void btnLogout_OnClick(object sender, EventArgs e)
{
System.Web.Security.FormsAuthentication.SignOut();
// Optionally clear the session
Session.Clear();
// Redirect the user to the login page or another page
Response.Redirect("login.aspx"); }
}
}