
354
|
Chapter 16: The HttpRequest Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Parameters
byteArray
An Array variable of type Byte to receive the specified number of bytes from
the method.
byteCount
An integer specifying the number of bytes to return.
Notes
This method provides backward compatibility with classic ASP applications. For
new development, using other means (such as the Files collection, etc.) is prefer-
able to achieve the results that this method was used for.
MapPath
stringvar = Request.MapPath(virtualPath)
stringvar = Request.MapPath(virtualPath, _
baseVirtualDirectory, allowCrossMapping)
The MapPath method, which the Server object exposed in classic ASP, allows you
to retrieve a physical path on the server for a provided virtual path. In ASP.NET,
this method is overloaded, meaning that it can be called with two different sets of
arguments, as shown in the previous code. The first style, which is the same as in
classic ASP, simply passes in a String containing the virtual path to be mapped.
The second adds the
baseVirtualDirectory argument, which specifies a base from
which to resolve relative paths, and the
allowCrossMapping argument, which
allows you to map virtual paths that belong to other applications.
Parameters
stringvar
A String variable to receive the mapped physical path.
virtualPath
A String argument containing ...