Page 1 of 1

WebForm AddHeader implemented?

Posted: Friday 31st December 2021 11:55pm
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

Re: WebForm AddHeader implemented?

Posted: Monday 18th July 2022 9:59am
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?