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 7918455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:30:52+00:00 2026-06-03T15:30:52+00:00

I have been doing ASP.NET for a while, and have done very little in

  • 0

I have been doing ASP.NET for a while, and have done very little in MVC (in general), but very new at the ASP.NET MVC framework, as well as the correct terminology on a few things.

Here is my example (actual application I am working on is different, but this is a public example I can use) – I want to create a simpler version of Redmine, but in .net.

I want to list issues, in such a way that if I go to example.org/issues, I see a list of all issues (similar to http://www.redmine.org/issues), across all projects.

But if I go to the project, as in example.org/project/issues, I see just the issues for that project (similar to http://www.redmine.org/projects/redmine/issues). This would be the same for example.org/project2/issues, etc.

What is the correct term for this? I would assume that the developers didn’t rewrite the ‘issues’ code in two places, that they reused this code.

Since I don’t know the fully correct term for this, it is hard to find good examples in the ASP.NET MVC world that I can start with. So the second part of this, is what would be an example that I could look at in ASP.NET MVC, and how should this look in Visual Studio to me?

There would also be several other things under /project/, like settings, details, logs, etc, similar on how one would navigate http://www.redmine.org/projects/redmine/.

Finally, what if projects was not on the top level? As in, what if my application was more like:

example.org/
example.org/projects/
example.org/projects/project1
example.org/projects/project1/issues
example.org/projects/project2
example.org/dashboard/
  • 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-03T15:30:54+00:00Added an answer on June 3, 2026 at 3:30 pm

    Set up one controller called whatever you’d like (I’ll use RedMineController).

    In that controller you’ll have a single action method named ListIssues. Accept a parameter named ProjectName:

    public ActionResult ListIssues(string projectName) {}
    

    Lastly create two routes in your global.asax.cs:

    routes.MapRoute(
        "Issues Root",
        "issues",
        new { controller = "RedMine", action = "ListIssues" }
    );
    
    routes.MapRoute(
        "Project Issues",
        "projects/{projectName}/issues",
        new { controller = "RedMine", action = "ListIssues" }
    );
    

    In your ListIssues action, check if projectName == null, and if so get all issues, otherwise get specific ones. The first route will pass null, the second will pass what is in the URL. Don’t forget to throw a 404 if the project name in the URL is invalid.

    Hope this helps!

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

Sidebar

Related Questions

I'm not a WinForms developer, but have been doing ASP.NET for quite some time.
I am new to ASP.NET MVC and I have been able to figure pretty
I'm trying to upgrade my ASP.NET MVC 1 website to version 2. While doing
I have been doing ASP.NET / C# development for several years now. I have
I'm new to asp.net mvc. I have index method with parameter id : public
I've recently begun doing ASP.NET MVC work with others using Visual Studio. While MonoDevelop
I have an ASP.NET (MVC) website that is serving static content (images) as well
I have an ASP.NET site and I've been doing some work refactoring code to
using ASP.NET MVC 2 I have a navigation menu inside my Master Page. In
I've been doing web (all ASP.NET now) and desktop development for ten years and

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.