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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:35:23+00:00 2026-05-25T22:35:23+00:00

I am doing a small ASP.NET 2.0. site refactoring. Currently there is the following

  • 0

I am doing a small ASP.NET 2.0. site refactoring.

Currently there is the following folder structure:

/siteroot/services/home/service1
/siteroot/services/home/service2
/siteroot/services/home/service3
...

all the folders (service1, 2, 3) contain an almost identical default.aspx, with the different content hardcoded into the web form declaration.

My idea is to create one service.aspx and serve custom page (with the same template) on a particular URL request.

My question is:

How can I redirect all request to ../services/home/service1,2,3 to one particular handler/aspx page?

Preferably not to have those folders in the project structure at all, but intercept a requests that are headed to them.

  • 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-25T22:35:24+00:00Added an answer on May 25, 2026 at 10:35 pm

    If you are able to implement ASP.NET 3.5 (runs on the 2.0 CLR), then Routing sounds perfect for what you need to achieve. With this you can intercept URLs based on a particular format and then route them through to a single page or handler. You won’t need a folder structure for each of your services.

    Here’s a few links on how to get going with it in ASP.NET WebForms. It’s pretty quick to implement:

    • http://msdn.microsoft.com/en-us/magazine/dd347546.aspx
    • http://msdn.microsoft.com/en-us/library/cc668201%28v=VS.90%29.aspx
    • http://haacked.com/archive/2008/03/11/using-routing-with-webforms.aspx
    • http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing simple forms authentication for a small ASP.NET (3.5, C#) application and
I've have quite small asp.net MVC 2 application to maintain/extend. Currently it uses hand
Currently I am working on small application in asp.net mvc. It is a some
I have a small site I developed for a friend that uses ASP.Net MVC
I'm working on a big ASP.NET MVC site, a commerce service sold to customers.
I have an asp.net page within which I've used several AJAX controls doing partial
In my ASP.NET MVC app I'm using a small helper to iterate through all
If you are using ASP.NET MVC how are you doing grid display? Rolled your
I am doing a website using asp.net C# and I would like to popup
I'm developing an ASP.Net mvc application which has a requirement to do some small,

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.