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

  • Home
  • SEARCH
  • 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 7083919
In Process

The Archive Base Latest Questions

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

Ok I had a huge Issue giving this a proper title, my excuses for

  • 0

Ok I had a huge Issue giving this a proper title, my excuses for that.

Anyways I have started slowly to look at Web and ASP.NET again, I am a C# developer but I have mostly worked with Windows applications the past 5 years or so, It is not that I haven’t touched the web as such in that time, but this is as web services (Restfull as well as the ugly SOAP services) I have also worked with more “raw” web requests.

But I have not worked with IIS or ASP.NET in all that time.

What I would like to do is hos a web page that uses a URL style I could best describe with “like rest”, hence the “Restfull urls” title. Because I think most people thinks of such URL’s in terms of:

http://example.com/item/
http://example.com/item/23/

and so forth. Not that they have to look like that, however I would like to use such URL’s instead of

http://example.com/item?id=23

I know subtext does this, but i have not had any luck finding it in their code base.

Now as far as I can tell I could just implement some IHttpHandler’s, but at least for the examples I have seen of that, they write the page source back in code, and I still have master pages etc. I wish to use instead of taking over all that stuff my self, I really just kinda wants to route http://example.com/item/23/ to http://example.com/item and asking for the item with id 23…

I hope this makes sense at all >.<… And that someone has some better examples at hand that what I have been able to find.

  • 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-28T07:14:17+00:00Added an answer on May 28, 2026 at 7:14 am

    So here are your options-

    For .net 3.5 sp1 framework with IIS7 you can use asp.net routing feature to have MVC style urls that you mentioned should create a custom route handler implementing IRouteHandler interface as explained here How to: Use Routing with Web Forms and register your route rules in Application_Start method in Global.asax. For your example you can register a route like this

        routes.Add("ItemRoute", new Route
        (
        "item/{itemId}", 
        new CustomRouteHandler("~/item.aspx")
        ));  
    

    and then you can access itemId in your routed item.aspx page by checking request context item

        requestContext.HttpContext.Items["itemId"]
    

    For .net framework 4 MVC you dont have to create a custom handler, you can directly use

        routes.MapPageRoute("ItemRoute", "item/{itemId}", "~/item.aspx");
    

    in you global.asax Application_Start method.

    This link explains more about the Routing

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

Sidebar

Related Questions

I had a huge file for creating this GUI and I have shortened it
I had an issue that a Win32 application has huge performance difference between debug
Had a problem with the recursive conflictCheck() method. That seems fine now. I have
I currently ran into the issue that I do not have the money to
I had a web service written in .NET 2.0 that expose some web methods.
This is for Delphi Prism. Say, I have the following enum SET type that
We currently have a quite complex business application that contains a huge lot of
We had huge performance problem when deploying our ASP.NET app at a customer, which
I had a huge problem and spend hours trying to make it work, but
Say if you had to develop a huge windows desktop app what language/technology you

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.