From 4ede91cf46da92d3103bfa33bd401817a42e7892 Mon Sep 17 00:00:00 2001 From: Marcelo Mohr Maciel Date: Sun, 25 Nov 2018 03:18:00 -0200 Subject: [PATCH 1/2] incorrect file name index.cshtml instead of index.html --- docs/en/Tutorials/AspNetCore-Mvc/Part-I.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/Tutorials/AspNetCore-Mvc/Part-I.md b/docs/en/Tutorials/AspNetCore-Mvc/Part-I.md index 5ed244a53c..9a48022e27 100644 --- a/docs/en/Tutorials/AspNetCore-Mvc/Part-I.md +++ b/docs/en/Tutorials/AspNetCore-Mvc/Part-I.md @@ -292,7 +292,7 @@ Check the `books` table in the database to see the new book row. You can try `ge It's time to create something visible and usable! Instead of classic MVC, we will use the new [Razor Pages UI](https://docs.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start) approach which is recommended by Microsoft. -Create a new `Books` folder under the `Pages` folder of the `Acme.BookStore.Web` project and add a new Razor Page named `Index.html`: +Create a new `Books` folder under the `Pages` folder of the `Acme.BookStore.Web` project and add a new Razor Page named `Index.cshtml`: ![bookstore-add-index-page](images/bookstore-add-index-page.png) From 9171a793349a5ad266ed5dde71266c6e661c8dce Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Tue, 27 Nov 2018 15:54:58 +0300 Subject: [PATCH 2/2] AbpProgressTagHelperService fix --- .../TagHelpers/ProgressBar/AbpProgressBarTagHelperService.cs | 3 +++ .../TagHelpers/ProgressBar/AbpProgressTagHelperService.cs | 1 + .../Pages/Components/ProgressBars.cshtml | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressBarTagHelperService.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressBarTagHelperService.cs index cf5df37b04..a27deff44d 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressBarTagHelperService.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressBarTagHelperService.cs @@ -14,6 +14,9 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.ProgressBar SetStripClass(context,output); SetTypeClass(context,output); SetValues(context, output); + + output.TagName = "div"; + output.TagMode = TagMode.StartTagAndEndTag; } protected virtual void SetValues(TagHelperContext context, TagHelperOutput output) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressTagHelperService.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressTagHelperService.cs index f42d8c3ba7..4f70af2600 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressTagHelperService.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressTagHelperService.cs @@ -8,6 +8,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.ProgressBar public override void Process(TagHelperContext context, TagHelperOutput output) { output.Attributes.AddClass("progress"); + output.TagName = "div"; } } diff --git a/framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/Pages/Components/ProgressBars.cshtml b/framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/Pages/Components/ProgressBars.cshtml index 563e23a9c8..3e3e1e28e7 100644 --- a/framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/Pages/Components/ProgressBars.cshtml +++ b/framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/Pages/Components/ProgressBars.cshtml @@ -20,8 +20,7 @@
- - +