ASP.NET MVC2: How to include js script/resource files compiled into dll? -


is there way in asp.net mvc reference resource files compiled dll on master/view? i'm looking similar asp.net way:

page.clientscript.getwebresourceurl(typeof(pagetype), "resourcename") 

i'm converting custom asp server control mvc html helper. relies on js script , i'd hate tell client "oh, , include file script on page".

any kind of (or thoughts) highly appreciated :)

you have controller return content browser believes javascript file. if of code render javascript file in controller rolled app's dll.

i've done css having controller return view has content type of "text/css". i'm sure technique applied here well.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -