[Gambas-user] How to load a new page on gb.web by code
benoit.minisini at gambas-basic.org
Wed Sep 20 23:07:36 CEST 2023
Le 20/09/2023 à 23:01, T Lee Davidson a écrit :
> On 9/20/23 14:50, Benoît Minisini wrote:
>> You must create one WebPage for each page in one project.
>> Then you create a startup module Main, and from the Main method of
>> that Main module, you choose the page you want to render, according to
>> the value of 'Request.Path'.
> Benoit just confirmed what I was thinking about using a Main module.
> (But, I hadn't thought of using Request.Path - nice tip.)
This is not really a tip, this is the only way to know what the users
want to see (usually a different request path means a different page).
More information about the User