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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:08:27+00:00 2026-05-12T08:08:27+00:00

About 10 stackoverflow.com podcasts back Jeff mentioned that instead of wiring up his routes

  • 0

About 10 stackoverflow.com podcasts back Jeff mentioned that instead of wiring up his routes inside of the global.asax file he instead put them inside his controllers near the actions those routes would invoke.

How does one go about doing this?

Doesn’t a route have to be registered before the controller it routes to is hit? Does he do it in the constructor? My mind is baffled by a chicken vs. egg issue here.

  • 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-12T08:08:27+00:00Added an answer on May 12, 2026 at 8:08 am

    Check out this question.

    I highly recommend you this approach. I’m using it with great success. 🙂

    Basic idea – we are using attribute to setup a route for specific action.
    In global.asax at app start we use reflection to initialize routes.

    EDIT:
    More precise link here.

    EDIT2:
    Not related to question but might be worth checking out (in case you haven’t):
    RESTful URLs from MVCContrib.

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

Sidebar

Related Questions

While answering to a question about that here: https://stackoverflow.com/a/9872630/82609 I tried to do the
https://stackoverflow.com/a/64983/468251 - Hello, I have question about this code, how made that working with
I read that discussion about the content of ~/.gitconfig on Linux: https://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain I know
As caf talked about it in https://stackoverflow.com/a/1113041/1354779 , there is a way to use
On some StackOverflow question about GWT cons and pros from 2009 someone answered that:
I have googled a lot and also searched in stackoverflow.com about how to sort
Possible Duplicate: question about leading zeros As in stackoverflow.com/questions/3232534/question-about-leading-zeros . Number of trailing zeros,
I just spent some time reading https://stackoverflow.com/questions/2768248/is-md5-really-that-bad (I highly recommend!). In it, it talks
There are a number of discussions on stackoverflow.com about what is the best iPhone
I've found many posts about rounding down time values (e.g. https://stackoverflow.com/a/6667041/468823 ), but I

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.