-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.aspx.cs
43 lines (39 loc) · 1.1 KB
/
index.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
42
43
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ProyectoAsp.Clases;
using MySql.Data.MySqlClient;
using System.Threading;
namespace ProyectoAsp
{
public partial class Formulario_web11 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
var id = Session["id_user"];
if (id == null)
{
Response.Redirect("Login.aspx", true);
return;
}
string estado = Session["estado"].ToString();
bool estatus = Seguridad.UsuarioActivo(Convert.ToInt32(estado));
if (estatus == false)
Response.Redirect("Inactivo.aspx" , true);
string p = Session["perfil"].ToString();
int perfil = Convert.ToInt32(p);
switch (perfil)
{
case 1:
break;
case 2:
break;
default:
break;
}
}
}
}