Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. blove57

    Supporting multiple hosts within one ASP.NET application

    I'm trying to have one .NET app to handle many websites, and efficiency and intermingling is the biggest problem I'm facing. I'm trying to define a good foundation. The guy at dotnetkicks.net explains it perfectly what I'm trying to do...
  2. blove57

    Mixing cache and sessions within a session object

    I'm having trouble getting my app to compile. What I'm trying to do is I have a class that has a bunch of cache and session objects. But then I'm putting that whole class within the user's session for easy referencing. This is what I have: public partial class test_Default : System.Web.UI.Page...
  3. blove57

    How do I extract domain name from host header?

    I hope I'm on the right track. My intention was to point multiple websites to the same web application. Then in web.config, giving each website their own ConfigSection so I can tweak each website separately while still hitting the same app. I was going to differentiate each ConfigSection by...
  4. blove57

    How do I extract domain name from host header?

    Thanks for all the help. It's getting to be quite tricky, especially since you can't simply just count the array element when spliting the host by periods. The reason is for cases like www.mydomain.co.uk, which has 3 periods. How would you know which one is the whois domain name when also...
  5. blove57

    RegEx to extract just domain name from URL?

    I need to grab just the domain name from the URL the user is requesting. I need to make sure the domain is only return since my application uses this info to differentiate different domain names pointing to the same web application. For example, if the URL is: www.mydomain.com mydomain.com:8080...
  6. blove57

    How do I extract domain name from host header?

    I need to know the exact the domain name that the user is requesting. I am currently using Request.ServerVariables["HTTP_HOST"] but doesn't give eactly what I need. For example, if the HTTP_HOST is: www.mydomain.com mydomain.com:8080 abc.mydomain.com xyz.mydomain.com:5000 I need all these to...

Part and Inventory Search

Back
Top