protected void Page_Load(object sender, EventArgs e)
{
try
{
SetFocus(searchBtn);
if (!IsPostBack)
{
Security sec = new Security();
centrosPermitidos.DataSource = sec.getCentrosPermitidos(Session["nombre_usuario"].ToString());
centrosPermitidos.DataBind();
}
}
catch (Exception ex)
{
Session["Error_Msg"] = ex.Message;
Response.Redirect("~/Error.aspx", true);
}
}