Programming Microsoft ASP.NET 4 - Dino Esposito [195]
InnerText
Inherited from HtmlContainerControl, gets or sets the text between the opening and closing tags of the form.
Method
Gets or sets a value that indicates how a browser posts form data to the server. The default value is POST. It can be set to GET if needed.
Name
Gets the value of UniqueID.
Style
Gets a collection of all cascading style sheet (CSS) properties applied to the form.
SubmitDisabledControls
Indicates whether to force controls disabled on the client to submit their values, allowing them to preserve their values after the page posts back to the server. False by default.
TagName
Returns “form”.
Target
Gets or sets the name of the frame or window to render the HTML generated for the page.
UniqueID
Inherited from Control, gets the unique, fully qualified name of the form.
Visible
Gets or sets a value that indicates whether the form is rendered. If this property is set to false, the form is not rendered to HTML.
The form must have a unique name. If the programmer doesn’t assign the name, ASP.NET uses a default name—aspnetForm. The programmer can set the form’s identifier by using either the ID or Name property. If both are set, the ID attribute takes precedence. (Note, though, that any reliance on the Name attribute compromises the XHTML compliance of the page.)
The parent object of the form is the outer container control with the runat attribute. If such a control doesn’t exist, the page object is set as the parent. Typical containers for the server form are