public static string GetUserProfile(string sID) { dictionaryToJson.Clear(); int ID = Convert.ToInt32(sID); SqlDataReader sdr = SysUser.GetUserInfoByReader(ID); if (sdr.Read()) { dictionaryToJson.Add("OpCode", sdr["OpCode"].ToString()); dictionaryToJson.Add("OpName", sdr["OpName"].ToString()); } DataSet ds = SysCustomField.GetCustomFieldLstByDataset(" And TableNo='UserInfo'"); DataTable dt = ds.Tables[0]; for (int i = 0; i < dt.Rows.Count; i++) { DataRow dr = dt.Rows[i]; string key = dr["FieldName"].ToString(); string value = sdr["Column_" + key].ToString(); dictionaryToJson.Add(key, value); } return(DataToJson(dictionaryToJson)); }