Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8991801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:48:41+00:00 2026-06-15T22:48:41+00:00

Im currently implementing MVC into a fairly large project and want to sort views

  • 0

Im currently implementing MVC into a fairly large project and want to sort views into categories. MVC dont seem to understand this and Im having problems finding a clean solution. Basically I was hoping to solve this with routes, but it isnt working.

My folder structure in the project is like this:

- Controller
  - SLResources
    - FAQController.cs

…

- View
  - SLResources
    - FAQ
      - (cshtml files in here)

Ive also tried adding a – FAQ folder after – SLResources in the controller folder structure.

Ive then made the following routing, with no luck:

RouteTable.Routes.MapRoute(
   name: "FAQ",
   url: "SLResources/FAQ/{action}/{id}",
   defaults: new { controller = "FAQ", action = "Index", id = UrlParameter.Optional }
);

basically I would like to reach the FAQ by using this url: http://www.xxxxxxxx.com/SLResources/FAQ/

Is the only solutions to either create a dummy class that redirects to the proper views, or a custom ViewEngine?

Any tips?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:48:43+00:00Added an answer on June 15, 2026 at 10:48 pm

    If your goal is to have the url with SLResources/FAQ, then you don’t need to create a separate folder in the Views.

    Your route already does that for you. Leave your route as is, and put your cshtml files in the ‘Views>FAQ’ folder and it will work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm still trying to understand what is the correct way of implementing MVC. This
I'm currently on my way to write a web application implementing the MVC and
i am currently implementing a binary tree in c++ and i want to traverse
I'm building an ASP.NET MVC 2 site where I'm currently implementing an OpenID sign-up
I'm currently implementing a radix tree/patricia trie (whatever you want to call it). I
Is the approach for implementing substitution caching in MVC 3 contained in this page
Im currently implementing an Octree for my bachelor thesis project. My Octree takes a
I'm currently setting up a new project, and I have run into a few
Im currently implementing a RC4 decryption and as this algorithm only operates on numbers
For an upcoming project, I am looking into MVP as an option over MVC.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.