HtmlInputHidden

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)



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net