﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class template : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
      HyperLink1.Text = "Login";
      HyperLink1.NavigateUrl = "~/login.aspx";
      HyperLink3.Visible = false;
      if (HttpContext.Current.User.Identity.IsAuthenticated)
      {
      HyperLink1.Text = "Logout";
      HyperLink1.NavigateUrl = "~/logout.aspx";
      HyperLink3.Text = "My Profile";
      HyperLink3.Visible = true;
      HyperLink3.NavigateUrl = "~/admin/edit-profile.aspx";
      }
    }
}
