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

How to Insert a Home Page in Front

$
0
0

I'm learning MVC Core 2 from a book by Apress, and the sample project is for a store.

I wrote the whole thing successfully, where the initial page on startup is the store.

(The _ViewStart and _Layout are all set up to show the store, and the routing takes you there.)

My question is, I'd like to put a page in front of all that, so the user will see a welcome page,

or a splash page, and then click a link to go to the store.

I created a home controller and action file, but I'm not real clear on whether to modify the

_ViewStart, change the way it loads the default _layout for the store, or create another _layout,

or something else.

I modified the routing so it sees my new home controller file, so that's fine. I'm just not sure what

to do with the _ViewStart file, since it points to a _Layout for the store.

Any advice? I'd be grateful. I apologize if this question is too vague.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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