Fork me on GitHub
摘要: 配置Web.Config连接数据库: (SQL Server 2000) 或 (SQL Server 2005 SQL Server 身份验证) 或 (SQL Server 2005 Windows 身份验证) 页面种Page_Load下代码为: Sq... 阅读全文
posted @ 2009-02-17 09:27 Zong_在路上 阅读(121) 评论(0) 推荐(0) 编辑
摘要: C#的默认类为internal类型。集成具有传递性,C#只支持单继承。静态属性不能在其实例化对象中引用,只能在类中引用。转义字符前加@,如string pattern = @"[a-zA-Z]+@[a-zA-Z]+/.com$"; 阅读全文
posted @ 2009-02-17 09:26 Zong_在路上 阅读(96) 评论(0) 推荐(0) 编辑
摘要: RadioButton控件:多个单选按钮如果只能选中一个,则GroupName的值必须设置为相同。 阅读全文
posted @ 2009-02-17 09:24 Zong_在路上 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 用数据库表填充下拉列表框 1、引入名称空间 using system.data using System.Data; using System.Data.SqlClient; 2、连接数据库(有多种连接数据库的方法) public SqlConnectio... 阅读全文
posted @ 2009-02-17 09:21 Zong_在路上 阅读(229) 评论(0) 推荐(0) 编辑