RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomPageDispatcher.RedirectToPageName Method

Fills out a response message so that it redirects the caller to another page in the application.

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

Call RedirectToPageName to generate a response that redirects the caller to another Web page in the WebSnap application. 

APageName is the name of the Web page to which the request should be redirected. If APageName is an empty string, RedirectToPageName uses the first Web page module that is registered with the current Web context. 

AParams is a string list containing application-defined name-value pairs. These name-value pairs supply the query fields of the redirected request message, and are added to the URL that is the target of the SendRedirect call. 

AResponse is the response object that the WebSnap uses to make the SendRedirect call. 

AFlags indicates the attributes that must be present on the Web page module to which the current request is redirected. For example, if AFlags includes dpPublished, APageName must specify a published Web page module. 

RedirectToPageName returns true if it successfully redirects to the specified page. 

 

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