Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
2 Points
1 Post
Nov 16, 2009 01:48 PM|LINK
Just my two cents :
For me, it started to work correctly when I stopped using GetType() to get the type to send to GetWebResourceUrl.
When you use GetType() your risk getting a reference to an assembly that is dynamically compiled by ASP.Net and that doesn't contain the resources.
When you use typeof(TypeInTheAssembly) you get a reference to the assembly that you compiled yourself containing the embedded resources.
Hawkwood
Member
2 Points
1 Post
Re: "Page.ClientScript.GetWebResourceUrl" does not work
Nov 16, 2009 01:48 PM|LINK
Just my two cents :
For me, it started to work correctly when I stopped using GetType() to get the type to send to GetWebResourceUrl.
When you use GetType() your risk getting a reference to an assembly that is dynamically compiled by ASP.Net and that doesn't contain the resources.
When you use typeof(TypeInTheAssembly) you get a reference to the assembly that you compiled yourself containing the embedded resources.