WebForm AddHeader implemented?

For questions about Gambas web tools.
Post Reply
Posts: 7
Joined: Thursday 30th December 2021 10:22pm

WebForm AddHeader implemented?

Post by crevilla » Friday 31st December 2021 11:55pm


Has anyone tried to work with WebForms and the AddHeader function. According to help, it accepts an string as argument. However, when I test the app the header is not included.

Code snippet:

Webform1.AddHeader("<link href=\"http://cdn.syncfusion.com/ ... ll.min.css\" rel=\"stylesheet\" />")

Any ideas?

UPDATE: Or how can I add an external javascript library to my header (or project)? Any help will be appreciated.

Dies ist kein Unterschrift.

Posts: 841
Joined: Thursday 23rd July 2020 5:20pm

Re: WebForm AddHeader implemented?

Post by BruceSteers » Monday 18th July 2022 9:59am

I was having issues setting a BG image till i moved the AddHeader method from WebForm_Open() to Public Sub _new() then it worked.

Possibly once Form_Open happens the headers are already written?

PS does WebForm.AddJavascriptFile() not do what you want?

Post Reply