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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.