-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCountriesMainPage.aspx.cs
More file actions
33 lines (32 loc) · 1001 Bytes
/
Copy pathCountriesMainPage.aspx.cs
File metadata and controls
33 lines (32 loc) · 1001 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
32
33
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 WebForm1 : System.Web.UI.Page
{
public string msg = "";
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Admin"] == "True")
{
msg += "<a href='Users.aspx'>Users</a>";
msg += "<a href='DeleteUser.aspx'>Delete User</a>";
}
if (Session["uName"] == "guest")
{
msg += "<a href = 'Login.aspx' > Log in</a>";
msg += "<a href = ' register.aspx' > register</a>";
}
else
{
msg += "<a href = 'Logout.aspx' > Log out</a>";
msg += "<a href = 'updateUser.aspx' > Update User</a>";
msg += "<a href = 'Survey.aspx' > Survey</a>";
}
}
}
}