-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCountries2.Master.cs
More file actions
31 lines (28 loc) · 897 Bytes
/
Copy pathCountries2.Master.cs
File metadata and controls
31 lines (28 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication1
{
public partial class Countries2 : System.Web.UI.MasterPage
{
public string loginMsg;
public string loginMsg2 = "";
protected void Page_Load(object sender, EventArgs e)
{
loginMsg = "Hello, " + Session["userFName"].ToString();
if (Session["uName"] == "guest")
{
loginMsg2 += "[<a href = 'login.aspx'>login</a>]<br />";
loginMsg2 += "[<a href = 'register.aspx'>register</a>]";
}
else
{
loginMsg2 += "[><a href = 'update.aspx'>update profile</a>]<br />";
loginMsg2 += "[<a href = 'logout.aspx'>logout</a>]";
}
}
}
}