Button_Click(){ Dictionary<string, string> firstNames = new Dictionary(stirng, string)(); Session.add("FirstNames", null); DataTable dt = obj.Authenticate(user, pass); string strSessionID = Session.SessionID; foreach(DataRow row in dt.Rows) { firstNames.Add(row, strSessionID); } Session["FirstNames"] = firstNames; }