Razor - render to "js" files as supposed to "cshtml"?
Web Development
1
Posts
1
Posters
0
Views
1
Watching
-
hello... can I render to "js" (Javascript) files as supposed to "cshtml"? For example, function GetCategories() { var sCategories; var i; i = 0; @foreach (var Category in Categories) { if(i>0) { sCategories.concat(','); } sCategories.concat(Category); i++; } return sCategories; } Thanks