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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:43:48+00:00 2026-05-11T09:43:48+00:00

I would like to know how to set up the routing in asp.net mvc

  • 0

I would like to know how to set up the routing in asp.net mvc so I can have similar urls to stackoverflows question urls?

Do you believe that ASP.Net MVC is ready for production?

I am guessing that for url creation there is a helper class that creates the question urls.

The part i am wondering is how this is implemented on the Controller side. I think that most probably the home controller has a questions action and the id is 115634. Then comes the title of the question – I guess this is for search engine optimization. My problem is how the controller method signature would look like.

Is it a Question(int? id) or Question(string? param) that contains both the id and the title?

How would one implement this?

  • 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. 2026-05-11T09:43:48+00:00Added an answer on May 11, 2026 at 9:43 am

    Check out this question where Jeff Atwood himself posts the code they use to make the friendly URL. Also, I am not a C# developer so I am not sure how things work on ASP.NET MVC, but if you try and remove the title in a StackOverflow URL, the page works anyways. They are 100% for readability for humans (so they know what to expect when they see the link) and for search engines. As such I would expect if you want something similar you make it an optional param in the controller.

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

Sidebar

Related Questions

Here's an image: I would like to know how i can set the black
I would like to know how I can set the MySQL time zone to
I would like to know the Set Automatically value programmatically so I can validate
I would like to know how to set the button color programatically? I have
I would like to know how i can set the current hyperlink id to
I would like to know how can I set up a development environment at
I have this code and I would like to know how to set id
I would like to know how to set up background color for a specific
I would like to know how a set is implemented in C++. If I
Would like to know how to hide an div after a set of css3

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.