Rock.Web.UI.Controls.ConfirmPageUnload.RenderControl C# (CSharp) Method

RenderControl() public method

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
public RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the control content.
return void
        public override void RenderControl( HtmlTextWriter writer )
        {
            base.RenderControl( writer );

            writer.AddAttribute( HtmlTextWriterAttribute.Type, "hidden" );
            writer.AddAttribute( HtmlTextWriterAttribute.Id, this.ClientID );
            writer.AddAttribute( HtmlTextWriterAttribute.Value, Enabled ? ConfirmationMessage : "" );
            writer.RenderBeginTag( HtmlTextWriterTag.Input );
            writer.RenderEndTag();
        }
ConfirmPageUnload