
498
|
Chapter 23: The System.Web Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
You can use the SaveAs( ) method to save a posted file to disk synchronously. The
method will return once the file is completely uploaded. Alternatively, you can get a
System.IO.Stream object containing the file from the InputStream property and use it to work
with the file asynchronously (while it is being uploaded).
Returned By
HttpFileCollection.{Get( ), this}, System.Web.UI.HtmlControls.HtmlInputFile.PostedFile
HttpRequest
System.Web (system.web.dll)
sealed class
The HttpRequest class wraps all information that a client browser passes to the server
during an HTTP request. It includes client certificates, cookies, and values submitted
through HTML form elements. You can access this information in its entirety as a
System.IO.Stream object through the InputStream property, or you can use one of the more
useful higher-level properties.
The QueryString property allows you to retrieve values from the URL’s query string,
which can transfer information from one ASP.NET page to another. This query string
takes the form of a series of name/value pairs appended to the URL after a question
mark (for example, the client request http://www.myapp.com/mypage.aspx?var1=hi will
result in a value of “hi” for Request.QueryString["var1"]). The QueryString collection ...