C
cruster
Hey folks.
I'm trying to achieve something like this within MasterPage code-
behind:
Page.ClientScript.RegisterClientScriptInclude("general",
Page.ClientScript.GetWebResourceUrl(GetType(),
"MyDLL.Resources.general.js"));
This fails, because of "GetType()" is not applicable in this context.
The same works fine on System.Web.UI.Page, but trying to use it with
System.Web.UI.MasterPage fails. What should I use as the first
parameter of GetWebResourceUrl()?
Thanks in advance.
I'm trying to achieve something like this within MasterPage code-
behind:
Page.ClientScript.RegisterClientScriptInclude("general",
Page.ClientScript.GetWebResourceUrl(GetType(),
"MyDLL.Resources.general.js"));
This fails, because of "GetType()" is not applicable in this context.
The same works fine on System.Web.UI.Page, but trying to use it with
System.Web.UI.MasterPage fails. What should I use as the first
parameter of GetWebResourceUrl()?
Thanks in advance.