public string EndControlContainer(FormElement formElement, IFormBuilderParameters formBuilderParameters) { var sb = new StringBuilder(); var stringWriter = new StringWriter(sb); var textWriter = new HtmlTextWriter(stringWriter); ControlContainer.End(textWriter); return(sb.ToString()); }
public string BeginControlContainer(FormElement formElement, IFormBuilderParameters formBuilderParameters) { var sb = new StringBuilder(); var stringWriter = new StringWriter(sb); var textWriter = new HtmlTextWriter(stringWriter); var bootStrapBuilderParameters = (BuilderParameters)formBuilderParameters; var formType = bootStrapBuilderParameters.FormType; ControlContainer.Begin(textWriter, formType); return(sb.ToString()); }