-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefectos.aspx.cs
41 lines (37 loc) · 1.11 KB
/
Defectos.aspx.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
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace BackRSS
{
public partial class Defectos : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
if (Session["nombreCuenta"] == null)
{
Response.Redirect("Error404.html");
}
else if (Session["rol"].ToString() == "Administrador")
{
Response.Redirect("Error404.html");
}
//else
//{
// if (Session["nombreUsuario"] != null)
// {
// Label1.Text = Session["nombreUsuario"].ToString();
// }
// if (Session["rol"] != null)
// {
// Label2.Text = Session["rol"].ToString();
// }
//}
}
}
}
}