TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
tri_inn
NA
1.2k
233.6k
ASP.Net MVC Core: setup view area location path
May 29 2017 6:58 AM
i read a article which discuss how to setup custom path for view
http://www.c-sharpcorner.com/article/expanding-razor-view-location-and-sub-areas-in-asp-net-core/
one area is not clear regarding routing code setup.
app.UseMvc(routes =>
{
routes.MapRoute(
name:
"subAreaRoute"
,
template
:
"{area:exists}/{subarea:exists}/{controller=Home}/{action=Index}/{id?}"
);
routes.MapRoute(
name:
"areaRoute"
,
template
:
"{area:exists}/{controller=Home}/{action=Index}/{id?}"
);
routes.MapRoute(
name:
"default"
,
template
:
"{controller=Home}/{action=Index}/{id?}"
);
});
what is the meaning of
{area:exists}
code ?
what it does ? what it is checking ?
please help me to understand this. thanks
Reply
Answers (
3
)
how to show mutiple views in sam page using mvc sitemap
facing problem in navigation