RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IPageDispatcher.DispatchPageName Method

Checks whether a specified user has a given access rights string.

Pascal
function DispatchPageName(const APageName: string; AResponse: TWebResponse; AFlags: TDispatchPageFlags): Boolean;
C++
__fastcall Boolean DispatchPageName(const AnsiString APageName, TWebResponse AResponse, TDispatchPageFlags AFlags);

Call DispatchPageName to fill out a response message with the Web page that a specified Web page module provides. DispatchPageName locates the Web page module that produces the requested Web page and uses it to fill out the content of a response object. 

APageName is the name of the Web page to fetch. If APageName is an empty string, DispatchPageName uses the first Web page module that is registered with the current Web context. 

AResponse is the response object whose Content property receives the requested Web page. 

AFlags indicates the attributes that must be present on the Web page module. For example, if AFlags includes dpPublished, APageName must specify a published Web page module or the page dispatcher won't fetch the Web page. 

DispatchPageName returns true if it successfully fetches the requested page, false if it fails to obtain the requested page. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!