Last post Nov 24, 2009 05:32 AM by kamii47
Aug 04, 2005 06:02 PM|BurntSky|LINK
Aug 04, 2005 11:24 PM|adam11235|LINK
Aug 05, 2005 03:33 AM|BurntSky|LINK
Feb 22, 2006 04:38 AM|seamoose|LINK
In the Page Load event of your MasterPage:
My masterpage doesn't seem to have a Page Load event (in fact, there is no code behind at all) - how do I get to it?
Thanks for any help!
Mar 01, 2006 03:25 AM|webbes|LINK
Having a thought....
Doesn't this work?(I don't have the opportunity to test it out over here...)
Feb 05, 2008 06:22 AM|ad_dc|LINK
Really you are a big prince [;)], it's very good work man
but let me know what "Global" (key) means ??? and if I put any name nothing affected ??
thank you very much again and again.
Nov 19, 2009 12:51 PM|kamii47|LINK
I have follow both approaches of either using
protected void Page_Load(object sender, EventArgs e)
this.Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "Global", this.ResolveClientUrl("~/JSFiles/AdapterUtils.js"));
this.Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "Global", this.ResolveClientUrl("~/JSFiles/MenuAdapter.js"));
this.Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "Global", this.ResolveClientUrl("~/JSFiles/ScriptFile.js"));
and other one using
protected override void OnLoad(EventArgs e)
Nov 23, 2009 11:18 AM|rikishipabst|LINK
kamii47: This is not the best implementation for this question. You can accomplish most of what he wants to do in the actual ASPX code.
code-behind magic it resolves the JS path and the file. Then you just include the user control for each JS file you need within your masterpage and they are added when the page is rendered.
Nov 24, 2009 05:32 AM|kamii47|LINK
Now I will also try out that one.