打印本文 打印本文 关闭窗口 关闭窗口
[ASP.NET]重构Session确实让代码简洁干净了不少
作者:武汉SEO闵涛  文章来源:敏韬网  点击数3467  更新时间:2009/4/23 10:39:09  文章录入:mintao  责任编辑:mintao
    /**//// <summary>
    /// Stores the specified session-value to the specified session-key.
    /// </summary>
    /// <param name="eKey">The key for the value to store in the session.</param>
    /// <param name="oValue">The value to store in the session</param>
    private static void SetValue ( eKeys eKey, Object oValue)
    {
      HttpContext.Current.Items[eKey.ToString()] = oValue;
    }
    #endregion

    /**//// <summary>
    /// An enum for the 
    /// </summary>
    private enum eKeys
    {
      UserID
    }
    }
}

上一页  [1] [2] [3] [4] [5] 

打印本文 打印本文 关闭窗口 关闭窗口