Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (permiso.CONOCERPERMISO(Convert.ToInt32(Session["idempleado"])).Rows[0][15].ToString() == "False")
     {
         Response.Redirect("Inicio.aspx");
     }
     DropDownList1.Visible = true;
     if (!IsPostBack)
     {
         int agencia = Convert.ToInt32(Session["idagencia"]);
         DropDownList1.DataSource     = pa.AsesoresDropdown(agencia);
         DropDownList1.DataTextField  = "name";
         DropDownList1.DataValueField = "Id_empleado";
         DropDownList1.DataBind();
     }
 }