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 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...
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...
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.