I'm embedding a javascript file as a resource in an assembly. How do I load javascript file in Asp.Net MVC project?
-
1You read the (entire) text and render it in your page.Andrei V– Andrei V2014-10-07 07:41:25 +00:00Commented Oct 7, 2014 at 7:41
-
2Another way, Embed javascript to your assembly as a resource then you can use this as assembly reference. like this [assembly: System.Web.UI.WebResource("<full assemblyname>.<you javascriptfile.js>", "application/x-javascript")]meetkichu– meetkichu2014-10-07 07:51:41 +00:00Commented Oct 7, 2014 at 7:51
-
1I'm read the article: link(codeproject.com/Articles/196727/…). I want to load js file before render body in the _Layout.cshtmlsnowmoun– snowmoun2014-10-07 08:20:31 +00:00Commented Oct 7, 2014 at 8:20
-
2I got the solution linksnowmoun– snowmoun2014-10-09 02:33:19 +00:00Commented Oct 9, 2014 at 2:33
Add a comment
|