protected void Page_Load(object sender, System.EventArgs e) { if (Session["usuario"] == null) { Response.Redirect("~/InicioQYMS2.aspx"); } usuario = (UsuarioBC)Session["USUARIO"]; if (!IsPostBack) { YMS_ZONA_BC yms = new YMS_ZONA_BC(); DataTable ds = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID); DestinoTipoBC desti = new DestinoTipoBC(); utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", ds); utils.CargaDrop(ddl_tipoDestino, "CODIGO", "NOMBRE", desti.obtenerTodo()); } }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { DestinoTipoBC dtt = new DestinoTipoBC(); DataTable dt = dtt.obtenerTodo(); foreach (DataRow dr in dt.Rows) { if (dt.Rows[0]["CODIGO"].ToString() == "DLPR") { dt.Rows.Remove(dr); break; } } this.utils.CargaDrop(this.ddl_editTipo, "ID", "NOMBRE", dt); } this.ObtenerDestinos(false); }