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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:45:12+00:00 2026-05-12T06:45:12+00:00

I have a site where provide pseudo subdomain based sites. Each subdomain has a

  • 0

I have a site where provide pseudo subdomain based sites. Each subdomain has a set of settings (ie. String name, string css, string title) that I need to access on all pages. What would be the best way of storing them for easy access?

I can’t use webconfig because different subdomains have their own settings collection so I store settings on sql server. I thought of caching all settings with different cache name but I am worried about the memory hog. Regardless using cache I understand I need to write some sort of class where I expose each setting as property.

Any ideas?

  • 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-12T06:45:12+00:00Added an answer on May 12, 2026 at 6:45 am

    Why don’t you subclass the Page or MasterPage to then expose your properties?

    In a C# file…

    class MyPage : System.Web.UI.Page
    {
        string PropertyName { get; set; }
    }
    

    In the all the ASPX files…

    <%@ Page Language="C#" Inherits="MyNamespace.MyPage" %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php site which has multiple php scripts. I need to provide
For example I have site http://localhost/site In IIS I set that 404 error causes
I want to have site wide default settings for all jQuery validation uses on
I have a site where users provide some dates, but if they enter year
I have a PHP site setup on my server that also has mod_wsgi +
I have site that has a Vimeo video where the client wants to hide
I have a file hosting site where I provide a point for every unique
I have an existing site (where nearly every line has been coded by hand)
I have an existing site that has a bunch of different models and controllers.
We have a website that we want to provide web based API access to

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.