/// <inheritdoc /> protected override void Render(HtmlTextWriter writer) { if (_contentContainer == null) { throw new MissingRequiredAttribute("The <ContentTemplate> template is missing and is required."); } CreateContents(); AddAttributesToRender(writer); writer.RenderBeginTag(ElementName); _contentContainer.RenderControl(writer); writer.RenderEndTag(); }
/// <inheritdoc /> protected override void Render(HtmlTextWriter writer) { if (_yesContainer == null) { throw new MissingRequiredAttribute("The <IsValidTemplate> template is missing and is required."); } CreateContents(); AddAttributesToRender(writer); writer.RenderBeginTag(ElementName); _yesContainer.RenderControl(writer); if (_noTemplate != null) { writer.RenderBeginTag(FbmlConstants.FB_ELSE); _noContainer.RenderControl(writer); writer.RenderEndTag(); } writer.RenderEndTag(); }