RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebPageInfo Class

TWebPageInfo describes a WebSnap page.

Pascal
TWebPageInfo = class(TBaseWebPageInfo);
C++
class TWebPageInfo : public TBaseWebPageInfo;

The TWebPageInfo module stores information relating to a web page, such as the template filename, page name, title, description, and access rights. This information is part of the web page module factory. This information is stored as part of the factory rather than as part of the module so that it can be accessed without creating the web page module. 

An instance of a TWebPageInfo is supplied to the constructor of the factory object that creates instances of the Web page module. Typically, the code to create this object and supply it to the Web page factory's constructor is generated by a Web page module wizard (in Delphi, the generated code appears in the initialization section of the generated unit for the Web page module; in C++, it appears in a #pragma startup). You can change the generated code to alter the properties of the Web page information object. For example, you may want to add a ViewAccess string to allow your application to limit access to the Web page. 

In a WebSnap application, you can access the Web page information object of any Web page module by calling the FindPageInfo method of the application's global Web context. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!