-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_MainLayout.master.cs
More file actions
72 lines (57 loc) · 1.33 KB
/
_MainLayout.master.cs
File metadata and controls
72 lines (57 loc) · 1.33 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _MainLayout : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
public Image imgprofile
{
get { return this.ImageProfile; }
}
public Label lblusername
{
get { return this.lbluser; }
}
public LinkButton logout
{
get { return this.linklogout; }
}
public LinkButton signup
{
get { return this.linksignup; }
}
public LinkButton login
{
get { return this.linklogin; }
}
public LinkButton home
{
get { return this.LinkHome; }
}
public ImageButton Imgfeed
{
get { return this.ImgFeedback; }
}
public ImageButton Imgabout
{
get { return this.ImgAbout; }
}
protected void linklogout_Click(object sender, EventArgs e)
{
Session["Name"] = null; //kill session
Session.Abandon();
// Session.Clear();
FormsAuthentication.SignOut();
Session.RemoveAll();
HttpContext.Current.Session.Abandon();
Response.Redirect("Login.aspx");
}
}