Friday, March 15, 2019

routing config - having trouble with it

Hi there,

I am having trouble understanding routing config for a couple of these Views I'm trying to do.

Here is what I have in my project:

RouteConfig.cs (I only have the default): routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } );

My file structure:

/Controllers SupportController.cs /Views /Support Help.html Contact.html About.html /Help UserAdmin.html ManageData.html 

The support controller currently serves the 3 html pages in the /view/support folder. help.html shows its url as root/Support/Help.

help.html will be a landing page for the help guides for the web application (eg. UserAdmin.html and ManageData.html).

I want to be able to set the URLs for UserAdmin.html and ManageData.html such that their links show as root/Support/Help/UserAdmin root/Support/Help/ManageData

If anyone can give any ideas on how to proceed, it would be greatly appreciated.

Thank you

routing config - having trouble with it Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team