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>
|
||||
Reference in New Issue
Block a user