WebForm AddHeader implemented?

Post

Posted
Rating:
#1 (In Topic #792)
Trainee
crevilla is in the usergroup ‘Trainee’
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/web/flat-azure/ej.web.all.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
Online now: No Back to the top

Post

Posted
Rating:
#2
Banned
 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?
Online now: No Back to the top
1 guest and 0 members have just viewed this.