diff --git a/PracticalNine.Tests/Controllers/HomeControllerTest.cs b/PracticalNine.Tests/Controllers/HomeControllerTest.cs index d215310..fae03ac 100644 --- a/PracticalNine.Tests/Controllers/HomeControllerTest.cs +++ b/PracticalNine.Tests/Controllers/HomeControllerTest.cs @@ -26,16 +26,16 @@ public void Index() } [TestMethod] - public void About() + public void Test3() { // Arrange HomeController controller = new HomeController(); // Act - ViewResult result = controller.About() as ViewResult; + ViewResult result = controller.Test3() as ViewResult; // Assert - Assert.AreEqual("Your application description page.", result.ViewBag.Message); + Assert.AreEqual("Hello World", result.ViewBag.Message); } [TestMethod] diff --git a/PracticalNine/Content/Site.css b/PracticalNine/Content/Site.css index 0ffae6d..d2a894d 100644 --- a/PracticalNine/Content/Site.css +++ b/PracticalNine/Content/Site.css @@ -1,8 +1,18 @@ /* Set padding to keep content from hitting the edges */ + +html { + height: 100vh; +} + +body { + height: 100vh; +} + .body-content { margin-top: 15px; padding-left: 15px; padding-right: 15px; + height: } /* Override the default bootstrap behavior where horizontal description lists diff --git a/PracticalNine/Controllers/HomeController.cs b/PracticalNine/Controllers/HomeController.cs index df0e585..20874ca 100644 --- a/PracticalNine/Controllers/HomeController.cs +++ b/PracticalNine/Controllers/HomeController.cs @@ -13,10 +13,14 @@ public ActionResult Index() return View(); } - public ActionResult About() + public ActionResult Test2() { - ViewBag.Message = "Your application description page."; + return View(); + } + public ActionResult Test3() + { + ViewBag.Message = "Hello World"; return View(); } diff --git a/PracticalNine/PracticalNine.csproj b/PracticalNine/PracticalNine.csproj index 9689377..f28a077 100644 --- a/PracticalNine/PracticalNine.csproj +++ b/PracticalNine/PracticalNine.csproj @@ -174,9 +174,10 @@ - + + diff --git a/PracticalNine/Views/Home/About.cshtml b/PracticalNine/Views/Home/About.cshtml deleted file mode 100644 index 5fa414e..0000000 --- a/PracticalNine/Views/Home/About.cshtml +++ /dev/null @@ -1,9 +0,0 @@ -@{ - ViewBag.Title = "About"; -} -
-

@ViewBag.Title.

-

@ViewBag.Message

- -

Use this area to provide additional information.

-
\ No newline at end of file diff --git a/PracticalNine/Views/Home/Index.cshtml b/PracticalNine/Views/Home/Index.cshtml index f1948a7..bb42b65 100644 --- a/PracticalNine/Views/Home/Index.cshtml +++ b/PracticalNine/Views/Home/Index.cshtml @@ -3,31 +3,5 @@ }
-
-

ASP.NET

-

ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.

-

Learn more »

-
- -
-
-

Getting started

-

- ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that - enables a clean separation of concerns and gives you full control over markup - for enjoyable, agile development. -

-

Learn more »

-
-
-

Get more libraries

-

NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.

-

Learn more »

-
-
-

Web Hosting

-

You can easily find a web hosting company that offers the right mix of features and price for your applications.

-

Learn more »

-
-
+

Hello World

\ No newline at end of file diff --git a/PracticalNine/Views/Home/Test2.cshtml b/PracticalNine/Views/Home/Test2.cshtml new file mode 100644 index 0000000..226f61f --- /dev/null +++ b/PracticalNine/Views/Home/Test2.cshtml @@ -0,0 +1,57 @@ +@{ + ViewBag.Title = "Test 2"; +} + +
+ +
+
+
+ + + + + +
+ +
+ +
+
+
+ +
+ + \ No newline at end of file diff --git a/PracticalNine/Views/Home/Test3.cshtml b/PracticalNine/Views/Home/Test3.cshtml new file mode 100644 index 0000000..6c8fdd4 --- /dev/null +++ b/PracticalNine/Views/Home/Test3.cshtml @@ -0,0 +1,11 @@ + +@{ + ViewBag.Title = "Test3"; +} + +

Test 3

+ +
+ +@ViewBag.Message + diff --git a/PracticalNine/Views/Shared/_Layout.cshtml b/PracticalNine/Views/Shared/_Layout.cshtml index 2408cb6..ccffcf3 100644 --- a/PracticalNine/Views/Shared/_Layout.cshtml +++ b/PracticalNine/Views/Shared/_Layout.cshtml @@ -10,25 +10,25 @@ -
- @RenderBody() +

+ @RenderBody()