WebForm AddHeader implemented?

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

WebForm AddHeader implemented?

Post by crevilla »

Hello,

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/19.4.0.38/js/ ... 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.

Thanks
Dies ist kein Unterschrift.
Image
User avatar
BruceSteers
Posts: 1505
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: WebForm AddHeader implemented?

Post by BruceSteers »

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?
If at first you don't succeed , try doing something differently.
BruceS
Post Reply