2011年11月9日

转型问题

摘要: 错误的写法:class Program { static void Main(string[] args) { Employee e = new Employee(); Manager m = (Manager)e; } } class Employee { } class Manager : Employee { }正确写法:class Program { static void Main(string... 阅读全文

posted @ 2011-11-09 23:08 CodeSummer 阅读(129) 评论(0) 推荐(0) 编辑

2011年3月24日

DropDownList 的多种用法

摘要: 1,与数据绑定 1.1 静态绑定 1.1.1在页面设计视图自己添加,或者带代码中添加 <asp:DropDownList ID="DropDownList1" runat="server"> <asp:ListItem Value="0" Text="否"></asp:ListItem> <asp:ListItem Value="1" Text="是"></asp:ListItem> </asp:DropDow 阅读全文

posted @ 2011-03-24 18:31 CodeSummer 阅读(168) 评论(0) 推荐(0) 编辑

2011年3月22日

客户端获取MAC地址,到服务器验证

摘要: 1, 网上找到的文章,用来获取客户端MAC,IP,主机名<HTML> <HEAD> <TITLE>WMI Scripting HTML</TITLE> <META http-equiv=Content-Type content="text/html; charset=gb2312"> <SCRIPT language=JScript event="OnCompleted(hResult,pErrorObject, pAsyncContext)" for=foo> document.f 阅读全文

posted @ 2011-03-22 17:09 CodeSummer 阅读(844) 评论(0) 推荐(0) 编辑

导航