Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URL param with THandler
#1
Hi

I use a Thandler like this:


Code:
  with THandlers.Add('/NewUser/', '', TContentForm.Create(TFrmNewUser)) do
  begin
     CanStartSession := True;
     RequiresSessionStart := True;
    end;

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
    param := 'no param'
  else
    param := WebApplication.RunParams.Values['xxx'];

But params stays empty.

What i'm missing?

Eric
Reply


Messages In This Thread
URL param with THandler - by etwoss - 02-09-2020, 08:04 AM
RE: URL param with THandler - by MrSpock - 02-09-2020, 10:16 AM
RE: URL param with THandler - by etwoss - 02-10-2020, 11:21 AM
RE: URL param with THandler - by etwoss - 02-14-2020, 06:37 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)