/// <summary> /// Writes the <see cref="T:System.Web.UI.WebControls.CompositeControl" /> content to the specified <see cref="T:System.Web.UI.HtmlTextWriter" /> object, for display on the client. /// </summary> /// <param name="writer">An <see cref="T:System.Web.UI.HtmlTextWriter" /> that represents the output stream to render HTML content on the client.</param> public override void RenderControl(HtmlTextWriter writer) { if (this.Visible) { _hfGroupGuid.RenderControl(writer); _hfGroupId.RenderControl(writer); _hfGroupTypeId.RenderControl(writer); writer.AddAttribute(HtmlTextWriterAttribute.Style, "margin-top:0;"); writer.RenderBeginTag(HtmlTextWriterTag.H3); _lblGroupName.Text = _tbGroupName.Text; _lblGroupName.RenderControl(writer); writer.RenderEndTag(); _tbGroupName.RenderControl(writer); _cbIsActive.RenderBaseControl(writer); _ddlGroupRequirement.RenderControl(writer); _phGroupAttributes.RenderControl(writer); if (EnableAddLocations) { writer.WriteLine("<h3>Locations</h3>"); if (this.Locations != null) { _gLocations.DataSource = this.Locations.OrderBy(l => l.Order).ThenBy(l => l.FullNamePath).ToList(); _gLocations.DataBind(); } _gLocations.RenderControl(writer); } } }
/// <summary> /// Writes the <see cref="T:System.Web.UI.WebControls.CompositeControl" /> content to the specified <see cref="T:System.Web.UI.HtmlTextWriter" /> object, for display on the client. /// </summary> /// <param name="writer">An <see cref="T:System.Web.UI.HtmlTextWriter" /> that represents the output stream to render HTML content on the client.</param> public override void RenderControl(HtmlTextWriter writer) { if (this.Visible) { writer.AddAttribute(HtmlTextWriterAttribute.Style, "margin-top:0;"); writer.RenderBeginTag(HtmlTextWriterTag.H3); _lblGroupTypeName.Text = _tbGroupTypeName.Text; _lblGroupTypeName.RenderControl(writer); writer.RenderEndTag(); _tbGroupTypeName.RenderControl(writer); _ddlGroupTypeInheritFrom.RenderControl(writer); _phGroupTypeAttributes.RenderControl(writer); if (EnableCheckinOptions) { _ddlAttendanceRule.RenderControl(writer); _ddlPrintTo.RenderControl(writer); writer.WriteLine("<h3>Check-in Labels</h3>"); if (this.CheckinLabels != null) { _gCheckinLabels.DataSource = this.CheckinLabels; _gCheckinLabels.DataBind(); } _gCheckinLabels.RenderControl(writer); } } }