private static void SavePage(int id, int masterPageID, string name, string title, string xmlFolder, string xmlUrl, string options) { try { db_config_page dcp = new db_config_page(); dcp.Open(); Page p = id >= 0 ? dcp.Get(id) : new Page(); p.IDMasterPage = masterPageID; p.Name = name; p.Title = title; p.XMLFolderPath = xmlFolder; p.XMLURL = xmlUrl; p.Options = options; if (id >= 0) dcp.Commit(); else dcp.Add(p); dcp.Close(); } catch (Exception ex) { throw new Exception("error: Save Page: " + ex.Message); } }