博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

07 2010 档案

摘要:http://hi.baidu.com/37116566/blog/item/fbedc7ce84e3ab0092457e56.html方法一、System.Net.WebClient WebClientObj = new System.Net.WebClient();System.Collections.Specialized.NameValueCollection PostVars = new System.Collections.Specialized.NameValueCollection();PostVars.Add("A1","0");PostVars.Add("A2","0"); 阅读全文

posted @ 2010-07-29 17:25 冷咖啡(子锡) 阅读(649) 评论(0) 推荐(0)

摘要:用了 Reflection反射机制,把一个对象的方法函数反射出来using System.Reflection;UsersModel = UsersBLL.GetModel(1);foreach (PropertyInfo pi in UsersModel.GetType().GetProperties()) {object v = pi.GetValue(UsersModel,null);if (Convert.ToString(v) == "") v = "empty";Response.Write(string.Format("{0}={1}br/", pi.Name, v));}. 阅读全文

posted @ 2010-07-24 10:22 冷咖啡(子锡) 阅读(1187) 评论(0) 推荐(0)