Sunday, November 23, 2014

asp.net set value in session

   public void SetInSession(string key, object value)
        {
            if (HttpContext.Current == null || HttpContext.Current.Session == null)
            {
                return;
            }
            HttpContext.Current.Session[key] = value;
        }

No comments:

Post a Comment