您的位置:首页 > 其它

客户端操作服务器端xml文件(用户个性配置读取)

2007-09-20 10:17 253 查看
前不久做了这么个功能(用户登入,到服务器端读取该用户的配置文件 然后在界面上显示) 想可能有些人会用到 把源代码贴上来,大家给提点意见 ^_^

1 public List<string> GetUserLog(string UserName, string TableName)
8 public void AddXmlNode(string path, XmlDocument xmlDoc, string TbName, List<string> Cols)
59 public bool UpdateUserLog(string Username, string TableName, List<string> Cols)
80 private string GetUserLogPath(string UserName)
121 frm_Monitor Mon = new frm_Monitor();
123 string ApplicationP = Mon.AppinPath;
124 //TempPath tt = new TempPath();
125 //string ApplicationP = tt.AppinPath;
126 string[] ApplicationPath = ApplicationP.Split('\\');
127 string path = "";
128 if (ApplicationPath.Length > 0)
129 foreach (string str in ApplicationPath)
131 if (str == "App_Server")
133 break;
134 else
135 path += str + @"\";
136 }
137 if (path != "")
138 path += @"UserLog\" + UserName + ".xml";
140
141 }
142
143 }
144 return path;
145 }
我做的主要是针对用户查询是显示数据字段的配置,大家可以根据自己的需求修改
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐