
724
|
Chapter 39: The System.Web.UI.HtmlControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
property of the containing form must be set to multipart/form-data to allow file uploads.
You can limit the maximum size of file uploads using the maxRequestLength setting in the
web.config file. By default, file uploads larger than 4096 KB will not be allowed.
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 ➝ HtmlInput-
File(System.Web.UI.IPostBackDataHandler)
HtmlInputHidden
System.Web.UI.HtmlControls (system.web.dll)
disposable
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 automati-
cally 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.
Hierarchy
System.Object ...