2016年11月17日 星期四

C# MVC how to create a project / controller / model / view (visual studio 2013)




C# MVC add Jquery libraries

Single page:

_layout.cshtml
@RenderSection("JavaScript", required: false)

view page
@section JavaScript
{
   <script type="text/javascript" src="@Url.Content("~/Scripts/SomeScript.js")"></script>
   <script type="text/javascript" src="@Url.Content("~/Scripts/AnotherScript.js")"></script>
}