DekGenius.com
[ Team LiB ] Previous Section Next Section

HtmlInputHiddendisposable

System.Web.UI.HtmlControls (system.web.dll)class

This class represents the HTML <input type=hidden> tag, which allows you to store hidden information that will be sent with all postbacks. This technique is commonly used to store information without using cookies or session state. ASP.NET automatically uses a hidden input field to preserve the contents of server controls that have the System.Web.UI.Control.EnableViewState property set to True.

You can also react to the ServerChange event. Because the hidden input field will be changed only through code on the server, this event will fire immediately in response to changes implemented by your code.

public class HtmlInputHidden : HtmlInputControl, System.Web.UI.IPostBackDataHandler {
// Public Constructors
   public HtmlInputHidden( );
// Protected Instance Methods
   protected override void OnPreRender(EventArgs e);            // overrides System.Web.UI.Control
   protected virtual void OnServerChange(EventArgs e);
// Events
   public event EventHandler ServerChange;
}

Hierarchy

System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) HtmlControl(System.Web.UI.IAttributeAccessor) HtmlInputControl HtmlInputHidden(System.Web.UI.IPostBackDataHandler)

    [ Team LiB ] Previous Section Next Section