![]() |
URL param with THandler - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: URL param with THandler (/thread-1530.html) |
URL param with THandler - etwoss - 02-09-2020 Hi I use a Thandler like this: Code: with THandlers.Add('/NewUser/', '', TContentForm.Create(TFrmNewUser)) do My url looks like: Code: http://127.0.0.1:8080/NewUser/$/?xxx=1 In the OnCreate of the TFrmNewUser form i coded: Code: if (WebApplication.RunParams.IndexOfName('xxx') = -1) then But params stays empty. What i'm missing? Eric RE: URL param with THandler - MrSpock - 02-09-2020 If I had a trouble like this, I would use the simplest code I could. Code: procedure TIWServerController.IWServerControllerBaseGetMainForm( RE: URL param with THandler - etwoss - 02-10-2020 Hi WebApplication.RunParams.Count = 0 , thats the problem Eric RE: URL param with THandler - etwoss - 02-14-2020 The problem was that i tested the params in the OnCreate of the ContentForm, should be in the Execute method |