Context.Items.Add()与HttpContext.Current.Items.Add()分别是什么意思 不同点在哪?

解决方案 »

  1.   

    不知道是不是一样 我在Portal Starter里看到的
    // Build and add the PortalSettings object to the current Context
    Context.Items.Add("PortalSettings", new PortalSettings(tabIndex, tabId));

    // Retrieve and add the SiteConfiguration DataSet to the current Context
    HttpContext.Current.Items.Add("SiteSettings", Configuration.GetSiteSettings());
      

  2.   

    是一样的。Page.Context == HttpContext.Current