Posted on: 4/23/2014 8:12:39 PM | Views : 641

I have two ASP.NET websites (say, A and B), each of which have a few sub-websites (e.g. sub sites 1,2,3). All sub-websites (e.g. sub sites 1,2,3) are the same applications. For all user request for a sub-website, I want to differentiate from A and B.
Below is what I failed.
I can set a unique value on web.config of A and B, like below, but sub-websites cannot have it
Site: A
protected void Application_BeginRequest() { HttpContext.Current.Items['SiteToken'] = read data from App settings in web.config } Subsite under site A:
protected void Application_BeginRequest() { Go to the complete details ...