protected string InsertarCalendario() { string mensaje = string.Empty; LogicaNegocio Ln = new LogicaNegocio(); SPWeb app2 = SPContext.Current.Web; if (Page.Session["dtArchivo"] != null) { DataTable dt = new DataTable("dtArchivo"); dt = (DataTable)Page.Session["dtArchivo"]; DataSet ds = new DataSet("calendario"); ds.Tables.Add(dt); decimal capInicial = util.GetValorDecimal(txtCapitalInicial.Text.Trim()); var xml = util.DatasetToXml(ds); if (xml != null) { if (Ln.CP_InsertarDatos(util.ObtenerValor(app2.CurrentUser.Name), "", xml, capInicial, "03")) { mensaje = string.Format("{0}{1}{2}", "OK", ";", "ingreso correcto"); } } } else { mensaje = "error al intentar cargar el calendario de pago"; } return(mensaje); }