Step 1
Create a new ASP.NET MVC Empty Project using Visual Studio.
Create a new ASP.NET MVC Empty Project using Visual Studio.
This example shows how to set Default values in ASP.NET MVC
Add new Layout.cshtml into shared folder. Add references of Kendo, CSS (which shows an UI in proper manner) and JavaScript into this Layout.cshtml
Add new Layout.cshtml into shared folder. Add references of Kendo, CSS (which shows an UI in proper manner) and JavaScript into this Layout.cshtml
- <!DOCTYPE html>
- <html>
- <head>
- <title>Set Default Values In MVC</title>
- <link href="~/Content/Site.css" rel="stylesheet" />
- <link href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
- <link href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.min.css" rel="stylesheet" type="text/css" />
- <link href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.default.min.css" rel="stylesheet" type="text/css" />
- <link href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.default.min.css" rel="stylesheet" type="text/css" />
- <script src="http://cdn.kendostatic.com/2014.2.716/js/jquery.min.js"></script>
- <script src="http://cdn.kendostatic.com/2014.2.716/js/kendo.all.min.js"></script>
- <script src="http://cdn.kendostatic.com/2014.2.716/js/kendo.aspnetmvc.min.js"></script>
- <script src="~/Scripts/kendo.modernizr.custom.js"></script>
- </head>
- <body>
- <header>
- <div class="content-wrapper">
- <div class="float-left">
- <p class="site-title" style="color:#ff0000">@Html.ActionLink("www.CoderFunda.com", "", "")</p>
- </div>
- <div class="float-right">
- <nav>
- <ul id="menu">
- <li>@Html.ActionLink("Home", "Index", "Home")</li>
- <li>@Html.ActionLink("About", "About", "Home")</li>
- <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
- </ul>
- </nav>
- </div>
- </div>
- </header>
- <div id="body">
- @RenderSection("featured", required: false)
- <section class="content-wrapper main-content clear-fix">
- @RenderBody()
- </section>
- </div>
- <footer>
- <div class="content-wrapper">
- <div class="float-left">
- <p>© @DateTime.Now.Year - www.CoderFunda.com</p>
- </div>
- </div>
- </footer>
- </body>
- </html>


Join the conversation! Your thoughts help the community grow.