/// <summary> /// Override of base Render, this method provides for automatic generation of /// hidden form elements for contained controls when the hidden property is true. /// </summary> protected override void Render(HtmlTextWriter output) { if (!Hidden) { base.Render(output); } else { foreach (Control C in Controls) { if (typeof(IHideable).IsInstanceOfType(C)) { C.RenderControl(output); } else { HiddenControls.RenderControlAsHidden(output, C); } } } }
/// <summary> /// Render this control to the output parameter specified. /// </summary> /// <param name="output"> The HTML writer to write out to </param> protected override void Render(HtmlTextWriter output) { HiddenControls.RenderHidden(output, UniqueID, (Encrypted)?Cryptor.Encrypt(Text, Constants.IK_STRING):Text); }
/// <summary> /// IHideable.SaveContext. Saves Hideable child controls to the context. /// </summary> public void SaveContext() { HiddenControls.SaveChildContext(this); }