SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 159 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

Unlike the URL string and cookie options, size limitations and device
support issues are not pressing concerns, so hidden input variables as part of an HTML form
are a heavily used technique for client-side state management.
For data stored in an HTML form to be available, the use of the HTTP POST mechanism is
required to transmit the state information back to the web server. ASP.NET helps ensure this
through the System.Web.UI.HtmlControls.HtmlInputForm server control. HtmlInputForm is smart
enough to render a method="post" attribute, along with an action attribute that directs the page
back to the original URL. The following tag on a hypothetical web form named first.aspx is
rendered as a server control because of the runat="server" attribute:

92 CHAPTER 3 ?–  ASP.NET S TATE MANAGEMENT
The server control representing the form tag emits the following HTML output:

Notice that the tag is tied to the HTTP POST protocol and has an action attribute to submit
the page back to the original URL of the web page. Ensuring that all emitted form variables,
hidden or not, can be read upon form submission is a key requirement. Here??™s the complete
form output for our simple example:
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6