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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:57:34+00:00 2026-06-06T07:57:34+00:00

Using .Net 4, isn’t it possible to include forward slash in route parameters or

  • 0

Using .Net 4, isn’t it possible to include forward slash in route parameters or one should force the user to use hyphen - instead

Example:
mysite.com/user/{id}/{year} maps to
mysite.com/user/01/2012

where {id} = {user/01} and {year} = 2012 in the example above

if this is the last route parameter it would be easier as pointed in the answers below. but it is not

I have read these, same questions as mine

  • URL-encoded slash in URL
  • How to pass special characters so ASP.NET MVC can handle correctly query string data?
  • How to make ASP.NET Routing escape route values?

but I didn’t really get what I want. I could use this solutions if I want to generate the URL.

But what happens if the use type the url in the browser?

Or one should avoid that and force the user to use other formats like replacing “/” with “-“? as:
mysite.com/user/usr-01/2012

  • 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-06T07:57:36+00:00Added an answer on June 6, 2026 at 7:57 am

    Loosely interpreted: Can a route-parameter include a forward-slash ?

    Answer: No. Just avoid that.

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

Sidebar

Related Questions

I'm working on updating one of our applications. It must use .NET 2.0. One
i'm pretty new to ADO.NET using C# (Visual Studio 2010). Using LinqToSql isn't an
Using .net 2.0 . I want to display a column in a DataGridView as
Using .Net and Oracle 11g - I've been returning dataTables from a procedure inside
Using .NET and the Word Interop I am programmatically creating a new Word doc
Using .NET's Office interop libraries, does anybody know the best way to convert back
using .NET 3.5. I have a function I want to make multithreaded calls to.
When using .NET's WebBrowser control, how can I get the entire HTML of the
I'm using .NET framework (tried 3.5 & 4.0) to load a .TIFF file and
I'm using .NET 4 and getting Input string not in correct format error when

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.