随笔分类 -  ASP.NET

摘要:appSettings的两大限制:1.不能很好的存储结构化的数据2.处理不同类型的数据灵活性较差比如你要在配置文件中存储如下信息是不行的:<orderService available="true" pollTimeout="00:01:00" location="tcp://OrderComputer:8010/OrderService"/> 为了突破这些限制,你可以这样扩展配置文件... 阅读全文
posted @ 2009-10-30 14:58 wispzone 阅读(386) 评论(3) 推荐(0)
摘要:public static string CreateMachineKey(int length){ // Create a byte array. byte[] random = new byte[length/2]; // Create a cryptographically strong random number generator. RNGCryptoServiceProvider rn... 阅读全文
posted @ 2009-10-30 13:13 wispzone 阅读(153) 评论(0) 推荐(0)
摘要:protected void Page_Load(object sender, System.EventArgs e){ // Perform the initialization only the first time the page is requested. // After that, this information is tracked in view state. if (!Pa... 阅读全文
posted @ 2009-10-30 10:19 wispzone 阅读(693) 评论(0) 推荐(0)
摘要:The Response object is an instance of the System.Web.HttpResponse class, and it represents the web server’s response to a client request. In classic ASP, the Response object was the only way to ... 阅读全文
posted @ 2009-10-29 16:38 wispzone 阅读(211) 评论(0) 推荐(0)
摘要:表tableA生成的实体Model_A里包含子实体Model_Aa(子实体Model_Aa属性为表tableA内的部分字段)所有数据对象以IList <model>传递. 问题: 若我用一gridview绑定表tableA,绑定的是IList <Model_A>.但是,由于某种原因,我又要用gridview绑定表tableA的某些字段,而这些字段包含在这个表实体的子实体Mo... 阅读全文
posted @ 2009-09-19 22:24 wispzone 阅读(966) 评论(1) 推荐(0)
摘要:[代码][代码][代码][代码] 阅读全文
posted @ 2009-09-19 22:02 wispzone 阅读(613) 评论(0) 推荐(0)
摘要:中文介绍:就是两个表之间的同步的显示,点击主表,子表同步更新。主要使用DataView、DataRowView、DataRelation等DataSet技术。 阅读全文
posted @ 2009-08-26 11:15 wispzone 阅读(345) 评论(0) 推荐(0)