[Gambas-user] How to load a new page on gb.web by code

T Lee Davidson t.lee.davidson at gmail.com
Tue Sep 19 16:01:08 CEST 2023


On 9/19/23 04:37, Mayost Sharon wrote:
> Hello I succeeded (in an inexplicable way) Load the second page (Webpage1.webpage) In the code in line 18 I added two lines 
> Webpage1.Render Quit But still when I click on the second page (Webpage1.webpage) on the submit button It returns back to the 
> main page (Main.webpage) And it's not good because I can't get the request values of the second page (Webpage1.webpage) An 
> example is attached Thanks

Again, put the code in Main.webpage, not in Main.class. In other words, take the code of the _new subroutine from Main.class and 
put it at the very top of Main.page enclosed in code tags: <% %>


-- 
Lee



More information about the User mailing list