S
shapper
Hello,
Is this the right way to include a JS file into a page using Script
Manager?
' Page_PreRender
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As
EventArgs) Handles Me.PreRender
With ScriptManager1
.ScriptPath = "~/App_Scripts"
.Scripts.Add(New ScriptReference("File1.js"))
.Scripts.Add(New ScriptReference("File2.js"))
End With
End Sub ' Page_PreRender
Am I using the right page event?
And how can I register a JS script block into the page?
Thanks,
Miguel
Is this the right way to include a JS file into a page using Script
Manager?
' Page_PreRender
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As
EventArgs) Handles Me.PreRender
With ScriptManager1
.ScriptPath = "~/App_Scripts"
.Scripts.Add(New ScriptReference("File1.js"))
.Scripts.Add(New ScriptReference("File2.js"))
End With
End Sub ' Page_PreRender
Am I using the right page event?
And how can I register a JS script block into the page?
Thanks,
Miguel