protected void rcmb_newObj_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) { if (rcmb_newObj.SelectedValue == "1") { cargar_gv_newObjetivosPresenciaPorTipoCiudad(); } else if (rcmb_newObj.SelectedValue == "2") { cargar_gv_newObjetivosPresenciaPorOficina(); } else { RadGrid_newObjtives.DataBind(); } ModalPopupExtender_add.Show(); //UpdatePanel_newObjtives.Update(); }
protected void cargar_gv_newObjetivosPresenciaPorOficina() { try { iservicio = Convert.ToInt32(this.Session["Service"]); sidcanal = this.Session["Canal"].ToString(); iidcompany = Convert.ToInt32(this.Session["companyid"].ToString()); DataTable dt = oCoon.ejecutarDataTable("UP_WEBXPLORA_CLIE_V2_OBTENER_POP_Y_OFICINA", iservicio, sidcanal, iidcompany); RadGrid_newObjtives.DataSource = dt; RadGrid_newObjtives.DataBind(); } catch (Exception ex) { Lucky.CFG.Exceptions.Exceptions mesjerror = new Lucky.CFG.Exceptions.Exceptions(ex); mesjerror.errorWebsite(System.Configuration.ConfigurationManager.AppSettings["COUNTRY"]); } }