-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSite.Master.cs
37 lines (35 loc) · 949 Bytes
/
Site.Master.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace ASPWebApplication
{
public partial class Site1 : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
if(Session["SessionID"] != null)
{
linklogin.Text = "Çıkış";
}
else
{
linklogin.Text = "Giriş";
}
}
protected void linklogin_Click(object sender, EventArgs e)
{
if(linklogin.Text == "Giriş")
{
Response.Redirect("login.aspx");
}
else if(linklogin.Text == "Çıkış")
{
Session["SessionID"] = null;
Response.Redirect("login.aspx");
}
}
}
}