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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:44:20+00:00 2026-05-17T19:44:20+00:00

Back Story I am currently updating an existing web application to support a multi-tenant

  • 0

Back Story
I am currently updating an existing web application to support a multi-tenant environment. Today we current host an application on http://www.example.com/MyApp, but now we must be able to support multiple clients on the same web application.

So each client should be able to access the application through urls like:
http://www.example.com/MyApp/Client1
http://www.example.com/MyApp/Client2

The web application is an ASP.NET webforms app that we are also upgrading to use .NET 4. I have already implemented the new routing available in ASP.NET 4, and I haven already put the appropriate routes in place to support the multi-tenant architecture.

The example URL http://www.example.com/MyApp/Client1/SomeModule/SomePage.aspx will route to and execute /MyApp/SomeModule/SomePage.aspx and I have access to the client part from within the RouteData.

BUT…

Main Question:
We have links in many parts of the application that use url’s like ~/SomeModule/SomePage.aspx, so when they render out to the browser they will still show /MyApp/SomeModule/SomePage.aspx, but what I really want is to have it contain one of my route values to inject the client page like MyApp/Client1/SomeModule/SomePage.aspsx

Is there a way to override what the ~/ means throughout my application without going through my entire app and updating the links?

  • 1 1 Answer
  • 1 View
  • 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-17T19:44:20+00:00Added an answer on May 17, 2026 at 7:44 pm

    I doesn’t seem like overriding the ~/ is possible. We have decided to take a different approach and create utility methods to help manage links and paths within our multi-tenant environment.

    The best option I saw to actually accomplish this is to implement IUrlResolutionService, but we were unable to make this work successfully.

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

Sidebar

Related Questions

Back in the days before Visual Studio Web Server we would host our local
I'm currently working on an Web Application similar to Steamworks (if you don't know
Back story i have a table that stores cached times, and currently has about
A bit of back story: I am currently trying to load a texture with
Back-Story On a current project, I am using MySQL and SQLite in combination with
I currently store a serialized XML file in the application directory that contains all
One of my hobby applications uses a SQLite back end to store the application
My Flask application is currently uses PostgreSQL to store all authentication information (users, tokens)
I'm currently writing Bitmaps to a png file and also reading them back to
I'm currently developping a globalized ASP.NET application (needs to work in english and french).

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.