protected void Desplegar_REGISTRO_CONTRATOS_ORG() { int idcamp = Convert.ToInt32(Session["IdCamp"].ToString()); int idreg = Convert.ToInt32(Session["IdRegional"].ToString()); string programa = Session["Programa"].ToString(); DB_AP_Responsable ListOrg = new DB_AP_Responsable(); GVContrato.DataSource = ListOrg.DB_Desplegar_REGISTRO_CONTRATOS_ORG(idcamp, idreg, programa); GVContrato.DataBind(); }
protected void Desplegar_REGISTRO_CONTRATOS_ORG() { if (DDLCamp.SelectedValue != "") { LblMsj.Text = string.Empty; DB_AP_Responsable ListOrg = new DB_AP_Responsable(); GVOrg.DataSource = ListOrg.DB_Desplegar_REGISTRO_CONTRATOS_ORG(Convert.ToInt32(DDLCamp.SelectedValue), Convert.ToInt32(DDLRegional.SelectedValue), DDLPrograma.SelectedValue); GVOrg.DataBind(); } else { LblMsj.Text = "No se definieron campaƱas"; } }