HttpServerUtility.Execute Method (String, Boolean)
.NET Framework 3.0
Executes the handler for the specified virtual path in the context of the current request and specifies whether to clear the QueryString and Form collections.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public void Execute ( String path, boolean preserveForm )
public function Execute ( path : String, preserveForm : boolean )
Not applicable.
Parameters
- path
The URL path to execute.
- preserveForm
true to preserve the QueryString and Form collections; false to clear the QueryString and Form collections.
| Exception type | Condition |
|---|---|
| The current HttpContext is a null reference (Nothing in Visual Basic). - or - An error occurred while executing the handler specified by path. | |
| path is a null reference (Nothing in Visual Basic). - or - path is not a virtual path. |
Community Additions
ADD
Show: