protected void Page_Load(object sender, EventArgs e) { if (Session["perfil"] != null) { if (Session["perfil"].ToString() != "Administrador") { Response.Redirect("Login.aspx"); } } else { Response.Redirect("Login.aspx"); } if (!IsPostBack) { DDLEmbEnRep.DataSource = EmpNaviera.Instancia.mostrarEmbRepPend(); DDLEmbEnRep.DataTextField = "Nombre"; DDLEmbEnRep.DataValueField = "IdEmb"; DDLEmbEnRep.DataBind(); DDLMateriales.DataSource = EmpNaviera.Instancia.Materiales; DDLMateriales.DataTextField = "nomMaterial"; DDLMateriales.DataValueField = "nomMaterial"; DDLMateriales.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DDLEmbEnRep.DataSource = EmpNaviera.Instancia.mostrarEmbRepPend(); DDLEmbEnRep.DataTextField = "Nombre"; DDLEmbEnRep.DataValueField = "IdEmb"; DDLEmbEnRep.DataBind(); DDLMecamicoRep.DataSource = EmpNaviera.Instancia.Mecanicos; DDLMecamicoRep.DataTextField = "Nombre"; DDLMecamicoRep.DataValueField = "NumReg"; DDLMecamicoRep.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DDLEmbEnRep.DataSource = EmpNaviera.Instancia.mostrarEmbRepPend(); DDLEmbEnRep.DataTextField = "Nombre"; DDLEmbEnRep.DataValueField = "IdEmb"; DDLEmbEnRep.DataBind(); DDLMateriales.DataSource = EmpNaviera.Instancia.Materiales; DDLMateriales.DataTextField = "nomMaterial"; DDLMateriales.DataValueField = "nomMaterial"; DDLMateriales.DataBind(); } }