asp.net - DNN WebResource.axd not found for custom control -


i've build custom control , want add embedded js file it. think did right , controls compiles expected.

i've marked js file build action "embedded resource"

the simplified control:

[assembly: webresource("googlemapslegend.js", "application/javascript", performsubstitution = true)]  namespace customcontrols {     public class googlemapslegend : webcontrol     {         protected override void oninit(eventargs e)         {             base.oninit(e);              this.page.clientscript.registerclientscriptinclude(typeof(customcontrols.googlemapslegend), "googlemapslegend", page.clientscript.getwebresourceurl(typeof(customcontrols.googlemapslegend), "googlemapslegend.js"));          }     } } 

when run control in dotnetnuke environment 404

failed load resource: server responded status of 404 (not found) http://testenvironment.dev.nl/webresource.axd?d=9ubkumgtbwyckhgqig5uhmzbpqjp5hcupdo…jqr5ylixdwqph6fjivdtykxwhjnyuip44d9akltg8kidfvfdwsnd0&t=635122452802549563

are there additional setting need put in web.config?

i've tried adding following web.config, no luck far.

<add verb="*" path="webresource.axd" validate="true" type="system.web.handlers.assemblyresourceloader" /> 

is possible there's conflict telerik.web.ui.webresource.axd?

i not sure looks line using register script may wrong. if correct have "googlemapslegend.js" need namespace/path before

so if file in subdirectory 'javascript' think should read

"namespace.javascript.googlemapslegend.js"

i may wrong here have used article in past this: http://weblogs.asp.net/briandukes/archive/2009/06/08/embedding-javascript-and-other-resources-in-a-net-assembly.aspx


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -