/// <summary> /// Sets page title and page related fields and builds sections on page. /// </summary> /// <param name="page"></param> public void BuildPage(EformPage page) { PageTitle.Text = page.Title; SectionsRptr.DataSource = page.Sections; SectionsRptr.DataBind(); }
private void BuildPage(string pageTitle, int pageNumber) { EformPage page = new EformPage(); page.Title = pageTitle; page.PageNumber = pageNumber; _eform.AddPage(page); }
public GetEform() : base() { this.Init += (a, b) => { // create sample blank form _eform = new Eform(); EformPage page = new EformPage(); page.Sections = new EformSection[] { new EformSection() }; _eform.Pages = new EformPage[] { page }; // default eform id and JSON eform from client POST EFormId.Value = POSTEFormId; JSONData.Value = POSTJSONEform; ProcessClientRequest(); }; }