From de1de6c083d884246064a859859251daa0cd1d74 Mon Sep 17 00:00:00 2001 From: Vipul1432 Date: Tue, 27 Jun 2023 16:02:55 +0530 Subject: [PATCH 1/3] Feat: add Test1 --- PracticalNine/Views/Home/Index.cshtml | 28 +---------------------- PracticalNine/Views/Shared/_Layout.cshtml | 7 +++--- 2 files changed, 4 insertions(+), 31 deletions(-) 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/Shared/_Layout.cshtml b/PracticalNine/Views/Shared/_Layout.cshtml index 2408cb6..8457993 100644 --- a/PracticalNine/Views/Shared/_Layout.cshtml +++ b/PracticalNine/Views/Shared/_Layout.cshtml @@ -10,14 +10,14 @@
- @RenderBody()
+ @RenderBody()
-

© @DateTime.Now.Year - My ASP.NET Application

From 7b0721dc078e7f6d4fb388e1c30cb614ed168ce3 Mon Sep 17 00:00:00 2001 From: Vipul1432 Date: Tue, 27 Jun 2023 18:29:30 +0530 Subject: [PATCH 2/3] Feat: add Test2 --- .../Controllers/HomeControllerTest.cs | 2 +- PracticalNine/Content/Site.css | 10 ++++ PracticalNine/Controllers/HomeController.cs | 4 +- PracticalNine/PracticalNine.csproj | 2 +- PracticalNine/Views/Home/About.cshtml | 9 --- PracticalNine/Views/Home/Test2.cshtml | 57 +++++++++++++++++++ PracticalNine/Views/Shared/_Layout.cshtml | 4 +- 7 files changed, 72 insertions(+), 16 deletions(-) delete mode 100644 PracticalNine/Views/Home/About.cshtml create mode 100644 PracticalNine/Views/Home/Test2.cshtml diff --git a/PracticalNine.Tests/Controllers/HomeControllerTest.cs b/PracticalNine.Tests/Controllers/HomeControllerTest.cs index d215310..38e11f9 100644 --- a/PracticalNine.Tests/Controllers/HomeControllerTest.cs +++ b/PracticalNine.Tests/Controllers/HomeControllerTest.cs @@ -32,7 +32,7 @@ public void About() HomeController controller = new HomeController(); // Act - ViewResult result = controller.About() as ViewResult; + ViewResult result = controller.Test2() as ViewResult; // Assert Assert.AreEqual("Your application description page.", result.ViewBag.Message); 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..8849580 100644 --- a/PracticalNine/Controllers/HomeController.cs +++ b/PracticalNine/Controllers/HomeController.cs @@ -13,10 +13,8 @@ public ActionResult Index() return View(); } - public ActionResult About() + public ActionResult Test2() { - ViewBag.Message = "Your application description page."; - return View(); } diff --git a/PracticalNine/PracticalNine.csproj b/PracticalNine/PracticalNine.csproj index 9689377..12a80f6 100644 --- a/PracticalNine/PracticalNine.csproj +++ b/PracticalNine/PracticalNine.csproj @@ -174,7 +174,7 @@ - + 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/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/Shared/_Layout.cshtml b/PracticalNine/Views/Shared/_Layout.cshtml index 8457993..3123220 100644 --- a/PracticalNine/Views/Shared/_Layout.cshtml +++ b/PracticalNine/Views/Shared/_Layout.cshtml @@ -18,13 +18,13 @@ -
+

@RenderBody()