Partager via


IServer::Execute

The IServer::Execute method calls a specified URL as an ASP page.

HRESULT Execute(
      BSTR bstrLogicalPath
);

Parameters

  • bstrLogicalPath
    [in] A binary string specifying the path for the .asp file to execute.

Remarks

The IServer::Execute method provides a way of dividing a complex application into individual modules. By employing the IServer::Execute method, you can develop a library of .asp files that you can call as needed. This approach is an alternative to server-side includes.

The IServer::Execute method returns the ASP 0173 error, "Invalid Path Character", if the Path parameter contains any of the following characters:

  • Asterisk (*)

  • Question mark (?)

  • Angle brackets (< or >)

  • Comma (,)

  • Colon or semi-colon (: or ;)

  • Single-quote or double-quote (' or ")

  • Right square bracket (])

  • Double slashes (// or \\)

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also