[Gambas-user] gb.web.form: Multiple main forms

Tobias Boege taboege at ...626...
Mon Nov 21 08:31:59 CET 2016


On Sun, 13 Nov 2016, Benoît Minisini wrote:
> Le 13/11/2016 à 17:47, Tobias Boege a écrit :
> > Hi Benoit,
> >
> > in revision #7958 you removed support for multiple main forms in gb.web.form.
> > I have two webforms, a Login.webform and a MainSite.webform, the latter of
> > which is my startup class. If the user is not logged in yet, according to the
> > session, I used to
> >
> >   Response.Redirect("/Login")
> >
> > which would run the login webform. This does not seem to be intended anymore.
> > How would I do something like that now? I don't want all the code in one
> > webform, obviously.
> >
> > Regards,
> > Tobi
> >
> 
> I'm aware of the problem, but didn't find a good solution yet.
> 
> Maybe the multiple main form support will come back.
> 

The Webform.Startup introduced in #7977 does the job for me.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list