Nu har vi lagt till ett web-projekt ASP MVC

This commit is contained in:
2020-04-23 23:21:32 +02:00
parent ffa3652cc8
commit d930e505b6
166 changed files with 10783 additions and 42363 deletions

View 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>

View File

@ -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>

View File

@ -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>

View File

@ -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 &raquo;</a></p>
</div>
</div>
</div>