随笔分类 - ASP.NET
摘要:appSettings的两大限制:1.不能很好的存储结构化的数据2.处理不同类型的数据灵活性较差比如你要在配置文件中存储如下信息是不行的:<orderService available="true" pollTimeout="00:01:00" location="tcp://OrderComputer:8010/OrderService"/> 为了突破这些限制,你可以这样扩展配置文件...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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 ...
阅读全文
摘要:表tableA生成的实体Model_A里包含子实体Model_Aa(子实体Model_Aa属性为表tableA内的部分字段)所有数据对象以IList <model>传递. 问题: 若我用一gridview绑定表tableA,绑定的是IList <Model_A>.但是,由于某种原因,我又要用gridview绑定表tableA的某些字段,而这些字段包含在这个表实体的子实体Mo...
阅读全文
摘要:中文介绍:就是两个表之间的同步的显示,点击主表,子表同步更新。主要使用DataView、DataRowView、DataRelation等DataSet技术。
阅读全文
浙公网安备 33010602011771号