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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:16:53+00:00 2026-05-11T07:16:53+00:00

I note this intriguing bit in ASP.NET MVC: routes.IgnoreRoute({resource}.axd/{*pathInfo}); I’d like to map {*pathInfo}

  • 0

I note this intriguing bit in ASP.NET MVC:

routes.IgnoreRoute('{resource}.axd/{*pathInfo}'); 

I’d like to map {*pathInfo} into a route.

Something like:

routes.MapRoute(   'area/{*pathInfo}',    '{controller}/{action}/{id}',parameters    new { controller = 'Area', action = 'Index', id = ??? }  ); 

but how do I pass in the variable ‘foo/bar/rab/oof’ from mydomain.com/area/foo/bar/rab/oof? Either passing the entire bit as a string or as a collection would be fine with me.

Thanks!

  • 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-11T07:16:54+00:00Added an answer on May 11, 2026 at 7:16 am

    Which MVC version are you using? The route name should be the first parameter to MapRoute() as I remember in MCV Beta. Anyway, given your goal of capturing the path, I would do s/t like:

    routes.MapRoute('AreaRoute', 'Area/{*values}', new {controller = 'Area', action = 'Index'}       ); 

    And in the Area controller:

    // 'value' argument is the string after Area/, i.e. 'foo/bar/rab/oof' in your example public string Index(string values)   {     ... } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

NOTE: This question is only loosely related to tinyxml, however including details like that
Note: this is NOT like this question I've been tasked to construct a survey
Note: This might seem like a Super User question at first, but please read
Note: This is .NET regular expressions. I have a bunch of text, from which
Note: this was inspired by WebBrowser Event Properties? Why am I able to access
Note this question was originally posted in 2009, before C++11 was ratified and before
Note: This question has broadened in scope from previous revisions. I have tried to
Note: This issue appears to be limited to SQL Server 2005 SP2 I have
Note: this is not real information: $ ssh-keygen -t rsa -C "tekkub@gmail.com" Generating public/private
Note: This problem occurs only on Mac, on Windows works fine. I have a

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.