private void Carga_Editar() { try { WSGestion.WSGestion wsgest = new WSGestion.WSGestion(); wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs"); WSGestion.MOD_Sucursal obj = new WSGestion.MOD_Sucursal(); obj = wsgest.SEL_GRID_BY_ID_Sucursal(codigo_seleccionado, centro_seleccionado); txt_nombre.Value = obj.SUC_nombre; txt_codigo.Value = obj.SUC_id_sucursal.ToString(); txt_cea_codigo.Value = obj.SUC_id_centro_atencion.ToString(); txt_cea_nombre.Value = obj.CEA_nombre; txt_direccion.Value = obj.SUC_direccion; txt_telefono.Value = obj.SUC_telefono; txt_codigo.Disabled = true; } catch (Exception exc) { WSGestion.WSGestion wsgest = new WSGestion.WSGestion(); wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs"); Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] = "0"; Alert_Mensaje.Attributes["class"] = "alert alert-danger"; mensaje_alerta = exc.ToString(); titulo_mensaje_alerta = "Error: "; Alert_Mensaje.Visible = true; } }