Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Razor Pages - Multiple _layouts

$
0
0

Is there a way to set a layout in Razor pages based upon the domain the user used to navigate to the site. I would examine the domain name that brought the user to the site (multiple bindings will be present) and then, based on that, would determine which layout they have selected (stored in SQL DB).

I'm pretty sure I can figure out the domain used, but my bigger question is how to set an alternate layout based upon this.

Thanks!

Bob


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>