Nu har vi lagt till ett web-projekt ASP MVC
This commit is contained in:
7
MVCUI/Views/Home/About.cshtml
Normal file
7
MVCUI/Views/Home/About.cshtml
Normal file
@ -0,0 +1,7 @@
|
||||
@{
|
||||
ViewBag.Title = "About";
|
||||
}
|
||||
<h2>@ViewBag.Title.</h2>
|
||||
<h3>@ViewBag.Message</h3>
|
||||
|
||||
<p>Use this area to provide additional information.</p>
|
||||
@ -1,8 +0,0 @@
|
||||
@Code
|
||||
ViewData("Title") = "About"
|
||||
End Code
|
||||
|
||||
<h2>@ViewData("Title").</h2>
|
||||
<h3>@ViewData("Message")</h3>
|
||||
|
||||
<p>Use this area to provide additional information.</p>
|
||||
@ -1,9 +1,8 @@
|
||||
@Code
|
||||
ViewData("Title") = "Contact"
|
||||
End Code
|
||||
|
||||
<h2>@ViewData("Title").</h2>
|
||||
<h3>@ViewData("Message")</h3>
|
||||
@{
|
||||
ViewBag.Title = "Contact";
|
||||
}
|
||||
<h2>@ViewBag.Title.</h2>
|
||||
<h3>@ViewBag.Message</h3>
|
||||
|
||||
<address>
|
||||
One Microsoft Way<br />
|
||||
@ -15,4 +14,4 @@ End Code
|
||||
<address>
|
||||
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br />
|
||||
<strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
|
||||
</address>
|
||||
</address>
|
||||
@ -1,6 +1,6 @@
|
||||
@Code
|
||||
ViewData("Title") = "Home Page"
|
||||
End Code
|
||||
@{
|
||||
ViewBag.Title = "Home Page";
|
||||
}
|
||||
|
||||
<div class="jumbotron">
|
||||
<h1>ASP.NET</h1>
|
||||
@ -28,4 +28,4 @@ End Code
|
||||
<p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p>
|
||||
<p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301867">Learn more »</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -16,7 +16,7 @@
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
@Html.ActionLink("Application name", "Index", "Home", New With { .area = "" }, New With { .class = "navbar-brand" })
|
||||
@Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
@ -37,6 +37,6 @@
|
||||
|
||||
@Scripts.Render("~/bundles/jquery")
|
||||
@Scripts.Render("~/bundles/bootstrap")
|
||||
@RenderSection("scripts", required:=False)
|
||||
@RenderSection("scripts", required: false)
|
||||
</body>
|
||||
</html>
|
||||
3
MVCUI/Views/_ViewStart.cshtml
Normal file
3
MVCUI/Views/_ViewStart.cshtml
Normal file
@ -0,0 +1,3 @@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
@Code
|
||||
Layout = "~/Views/Shared/_Layout.vbhtml"
|
||||
End Code
|
||||
Reference in New Issue
Block a user