-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSite1.Master.cs
More file actions
36 lines (32 loc) · 1010 Bytes
/
Copy pathSite1.Master.cs
File metadata and controls
36 lines (32 loc) · 1010 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
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Formation
{
public partial class Site1 : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["typelogin"].ToString() == "salarie")
{
// SiteMapDataSource1.EnableViewState = true;
TreeView1.Visible = true;
TreeView1.DataSourceID = "SiteMapDataSource1";
NAVsalarie.Visible = true;
}
else
{
TreeView1.DataSourceID = "SiteMapDataSource2";
NAVRH.Visible = true;
}
nom.Text = "NOM: " + Session["nom"].ToString().ToUpper();
Prenom.Text = "PRENOM: " + Session["prenom"].ToString().ToUpper();
}
protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{
}
}
}