|
Public Class _Default
Inherits System.Web.UI.Page
' Page load occurs before pre-render (the ideal place to exclude JavaScript).
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' We have some third-party control that includes jQuery in a weird way, so we will avoid including it again.
JavaScriptLibrary.JavaScriptHelper.Exclude_jQuery(Page.ClientScript)
End Sub
' We include our JavaScript during pre-render.
Protected Overrides Sub OnPreRender(e As System.EventArgs)
MyBase.OnPreRender(e)
' See above comment about excluding jQuery.
'JavaScriptLibrary.JavaScriptHelper.Include_jQuery(Page)
JavaScriptLibrary.JavaScriptHelper.Include_GreetUser(Page.ClientScript)
End Sub
End Class
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.