HttpRequest.SaveAs Method
.NET Framework 3.0
Saves an HTTP request to disk.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
| Exception type | Condition |
|---|---|
| The RequireRootedSaveAsPath property of the HttpRuntimeSection is set to true but filename is not an absolute path. |
The following code example calls the SaveAs method when a page is loaded. The call specifies that the request be saved as a text file in a directory where the ASP.NET process identity has been granted write permissions, and that any header information included in the request is included in the file.
Community Additions
ADD
Show: