/// <summary> /// Outputs server control content to a provided <see cref="T:System.Web.UI.HtmlTextWriter" /> object and stores tracing information about the control if tracing is enabled. /// </summary> /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter" /> object that receives the control content.</param> public override void RenderControl(HtmlTextWriter writer) { writer.AddAttribute(HtmlTextWriterAttribute.Class, "row"); writer.RenderBeginTag(HtmlTextWriterTag.Div); writer.AddAttribute(HtmlTextWriterAttribute.Class, "col-md-6"); writer.RenderBeginTag(HtmlTextWriterTag.Div); tbTitle.RenderControl(writer); writer.RenderEndTag(); writer.AddAttribute(HtmlTextWriterAttribute.Class, "col-md-6"); writer.RenderBeginTag(HtmlTextWriterTag.Div); cbSound.RenderControl(writer); writer.RenderEndTag(); writer.RenderEndTag(); rcwMessage.RenderControl(writer); }
/// <summary> /// Outputs server control content to a provided <see cref="T:System.Web.UI.HtmlTextWriter" /> object and stores tracing information about the control if tracing is enabled. /// </summary> /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter" /> object that receives the control content.</param> public override void RenderControl(HtmlTextWriter writer) { if (rbOpenAction.SelectedValue.IsNotNullOrWhiteSpace()) { var openAction = ( PushOpenAction )rbOpenAction.SelectedValue.AsInteger(); urlLink.Visible = openAction == PushOpenAction.LinkToUrl; kvlQuerystring.Visible = openAction == PushOpenAction.LinkToMobilePage; ppMobilePage.Visible = openAction == PushOpenAction.LinkToMobilePage; ddlMobileApplications.Visible = openAction == PushOpenAction.ShowDetails; htmlAdditionalDetails.Visible = openAction == PushOpenAction.ShowDetails; } else { urlLink.Visible = false; kvlQuerystring.Visible = false; ppMobilePage.Visible = false; ddlMobileApplications.Visible = false; htmlAdditionalDetails.Visible = false; } // Setting this here because the control clears out this in the OnInit function. ppMobilePage.SiteType = SiteType.Mobile; writer.AddAttribute(HtmlTextWriterAttribute.Class, "row"); writer.RenderBeginTag(HtmlTextWriterTag.Div); writer.AddAttribute(HtmlTextWriterAttribute.Class, "col-md-6"); writer.RenderBeginTag(HtmlTextWriterTag.Div); tbTitle.RenderControl(writer); writer.RenderEndTag(); writer.RenderEndTag(); rcwMessage.RenderControl(writer); }
/// <summary> /// Outputs server control content to a provided <see cref="T:System.Web.UI.HtmlTextWriter" /> object and stores tracing information about the control if tracing is enabled. /// </summary> /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter" /> object that receives the control content.</param> public override void RenderControl(HtmlTextWriter writer) { dvpFrom.RenderControl(writer); rcwMessage.RenderControl(writer); }