コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }