2009年3月23日

摘要: C#得到硬盘序列号 //================调用方法================================== HardDiskInfo hdd = AtapiDevice.GetHddInfo(0); // 第一个硬盘 Console.WriteLine("Module Number: {0}", hdd.ModuleNumber); Console.WriteLine("... 阅读全文
posted @ 2009-03-23 13:00 J-Pei 阅读(609) 评论(0) 推荐(0) 编辑
摘要: //从TreeView2控件中,拖放节点到TreeView1中 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; usi... 阅读全文
posted @ 2009-03-23 12:59 J-Pei 阅读(842) 评论(0) 推荐(0) 编辑
摘要: ASP.NET程序中常用的三十三种代码 1. 打开新的窗口并传送参数: 传送参数: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数: string a = Request.QueryString("id"); ... 阅读全文
posted @ 2009-03-23 12:57 J-Pei 阅读(195) 评论(0) 推荐(0) 编辑

导航