Hi mywatermelonYou could define two IStringLocalizers in the controller and implement them to add up, like the following:复制 public class BookController : Controller { private readonly IStringLocalizer _localizer; private readonly IStringLocalizer _localizer2; public BookController(IStringLocalize...
Melon, pumpkin, sugar and cocoa bean farms. Whatever else you can imagine. At this point, it's becoming less of an underground bunker and more of an underground city! Community Q&A Question Will the portal always take me to the bunker? TomPN Top Answerer Yes, as long as you build ...
What's more ,the css and js in these pages are all the same.So I use a Parital Views named 'Others.cshtml' to make it more convenient:Copy @section JSANDCSS{ } Finally,when I useCopy Html.RenderPartial("Others.cshtml"); in razor page,html in "Others.cshtml" can render ...
One is add a js in layout which is fixed and use js to decide if render it.The other way is add some c# code in layout and use viewdata as a variable.In every page set the viewdata to decide if render.However,I think two way is so ugly and strange.Sunday, April 8, 2018 11:...