Jacksonville Code Camp 2006 Recap - https://www.andrewconnell.com/blog/Jacksonville-Code-Cand-2006-Recap/
protected override void OnLoad(EventArgs e) { | |
// fully qualified name of the script | |
string scriptName ="JAXCC2006WebParts.CustomVerbsMenu.js" | |
// obtain reference to the page's client script manager | |
ClientScriptManager csMgr = Page.ClientScript; | |
// obtain the URL to the embedded JavaScript file in this assembly | |
string scriptURL = csMgr.GetWebResourceUrl(this.GetType(), scriptName); | |
// register the JavaScript file as an externally referenced .js file | |
csMgr.RegisterClientScriptInclude | |
( | |
this.GetType(), | |
"JAXCC2006WebParts_JS_CustomVerbsMenu", | |
scriptURL | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment