Use MVC 5 Scaffolding > Step 1 of 5: Create a MVC Tools Web Application |
Begin by creating a new ASP.NET MVC 5 Wijmo application. It will be automatically styled with built-in views and is based on the default project template that Microsoft ships. Complete the following steps:
<script type="text/javascript">
$(document).ready(function () {
$("#menu").wijmenu();
$(".button").button();
$(":input[type='submit']").button();
$(":input[type='checkbox']").wijcheckbox();
$(":input[type='radio']").wijradio();
$(":input[type='text'],:input[type='password'],textarea").not(":wijmo-wijinputnumber").not(":wijmo-wijinputmask").not(":wijmo-wijinputdate").wijtextbox();
$("select").not(":wijmo-wijcombobox").wijdropdown();
});
</script>
Find the <ul id="menu">
element and replace the existing list items <li>
in the markup to set up the page:
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("Lists", "Index", "TahDoList")
<ul>
<li>@Html.ActionLink("Add List", "Create", "TahDoList")</li>
</ul>
</li>
<li>@Html.ActionLink("Items", "Index", "TahDoItem")
<ul>
<li>@Html.ActionLink("Add Item", "Create", "TahDoItem")</li>
</ul>
</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
This markup will add Lists and Items menu items that will link to the controllers you will add later. Now add a model for the project.