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

  • Home
  • SEARCH
  • 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 1033601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:15:23+00:00 2026-05-16T14:15:23+00:00

In ASP.NET MVC2, How do I change routing/folder structure so I can have Views\FOLDER\Account\ChangePass.aspx

  • 0

In ASP.NET MVC2,

How do I change routing/folder structure so I can have

  • Views\FOLDER\Account\ChangePass.aspx

Rather than:

  • Views\Account\ChangePass.aspx

I don’t actually want to do it for the account, but I’d like to structure things like that, e.g.

SO I can have two different views like:

  • Views\Categories\

  • Views\Admin\Categories\

These would display completely differently.

All I want to do is to be able to create my own subfolders to push the views into, not a seperate folder for each different controller………………………………………………………

  • 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-05-16T14:15:24+00:00Added an answer on May 16, 2026 at 2:15 pm

    Go with the asp.net MVC convention for view location; if you want to have different url paths you need to look at creating your own routes, other than the default single route given to you. (See this primer.)

    Here’s an example of a route that you might add in your Global.asax to have the desired result but you’ll have to map this route to a controller action appropriately. Really, your need to decide on the pattern to meet the need of your app…

            routes.MapRoute(
                "FolderRoute",                                             
                "{controller}/{folder}/{action}/{id}",                     
                new { controller = "Home", folder = "yourFolderDefault", action = "Index", id = "" }
            );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ASP.NET MVC2 project in VS2010 that can be deployed in two
ASP.NET 1.1 - I have a DataGrid on an ASPX page that is databound
I have an Asp.net MVC2 web application. I built the application using VS2008 and
Entity Framework 4, POCO objects and ASP.Net MVC2. I have a many to many
I am working in asp.net MVC2 application and I have question related to design
I have following markup which is generated dynamically using C# in my asp.net MVC2
ASP.Net: In code-behind I can simulate <%# Eval(Property)%> with a call to DataBinder.Eval(myObject,Property); How
ASP.NET master pages - essential things. However, I have a lot of very similar
ASP.NET MVC routes have names when mapped: routes.MapRoute( Debug, // Route name -- how
I am trying to create a form in ASP.NET MVC2 RC 2 that is

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.