摘要: select count(*) from house_data 阅读全文
posted @ 2008-03-27 09:26 阿春 阅读(289) 评论(0) 推荐(0)
摘要: WebClient client = new WebClient(); string html = ""; try { client.Encoding = DefaultEncoding; html = client.DownloadString(Url); ... 阅读全文
posted @ 2008-03-23 20:47 阿春 阅读(300) 评论(0) 推荐(0)
摘要: /// 数据连接字符串 /// private static string connectionString; /// /// 数据库 驱动 提供者 /// private static string providerName; /// /// 数据库 驱动 提... 阅读全文
posted @ 2008-03-18 17:14 阿春 阅读(256) 评论(0) 推荐(0)
摘要: public static DataTable Select(string sql) { using (DbConnection conn = factory.CreateConnection()) { try { conn.Co... 阅读全文
posted @ 2008-03-18 15:47 阿春 阅读(166) 评论(0) 推荐(1)
摘要: 给一个文本 和 编码类型 转换成 规定类型的 URL 编码 public static string GetUrlEncode(string s, System.Text.Encoding e) { if (s.Trim() != "") { return HttpUtility.Ur... 阅读全文
posted @ 2008-03-16 23:52 阿春 阅读(245) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/duoe/archive/2007/12/16/996664.html 阅读全文
posted @ 2008-03-07 17:07 阿春 阅读(534) 评论(0) 推荐(0)
摘要: HtmlWeb hw = new HtmlWeb(); hw.DefaultEncoding = System.Text.Encoding.GetEncoding("gb2312"); string url = @"http://bbs.99read.com"; HtmlDocument doc = hw.Load(url);... 阅读全文
posted @ 2008-03-06 23:48 阿春 阅读(324) 评论(0) 推荐(0)
摘要: 1.更新操作 CREATE TRIGGER UpdateStuNameTrigger ON 学生信息 AFTER UPDATE AS BEGIN declare @Name varchar(20) declare @Id int select @Id=学号,@Name=姓名 from inserted update 成绩表 set 姓名=@Name where 学号... 阅读全文
posted @ 2008-03-02 17:04 阿春 阅读(113) 评论(0) 推荐(0)
摘要: int KeChengHao = int.Parse(this.textBox1.Text.Trim()); System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection("Data Source=127.0.0.1;Initial Catalog=Student;Use... 阅读全文
posted @ 2008-03-01 23:34 阿春 阅读(159) 评论(0) 推荐(0)
摘要: //// delete from 课程表 where 课程号=1 or 1=1 string sql = this.textBox1.Text.Trim(); System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection("Data Source=... 阅读全文
posted @ 2008-03-01 23:33 阿春 阅读(164) 评论(0) 推荐(0)