Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.