摘要: 周末写 阅读全文
posted @ 2013-10-31 22:08 dennys 阅读(356) 评论(0) 推荐(0) 编辑
摘要: private void button5_Click(object sender, EventArgs e) { string html = ""; WebHeaderCollection header = new WebHeaderCollection(); header.Set("Pragma", "no-cache"); html = getHtml("http://www.biomart.cn/info/infoDemand.htm?pge=1", header); Regex regex = new .. 阅读全文
posted @ 2013-10-31 21:45 dennys 阅读(960) 评论(0) 推荐(0) 编辑
摘要: 搜索网络,发现C#通常有三种方法获取网页内容,使用WebClient、WebBrowser或者HttpWebRequest/HttpWebResponse。。。方法一:使用WebClient (引用自:http://fbljava.blog.163.com/blog/static/265211742008712105145244/)static void Main(string[] args){ try { WebClient MyWebClient = new WebClient(); MyWebClient.Credentials = Creden... 阅读全文
posted @ 2013-10-31 21:40 dennys 阅读(1465) 评论(0) 推荐(0) 编辑
摘要: jquery判断checked的三种方法:.attr(‘checked’): //看版本1.6+返回:”checked”或”undefined” ;1.5-返回:true或false.prop(‘checked’): //16+:true/false.is(‘:checked’): //所有版本:true/false//别忘记冒号哦jquery赋值checked的几种写法:所有的jquery版本都可以这样赋值: $(“#cb1″).attr(“checked”,”checked”); $(“#cb1″).attr(“checked”,true);jquery1.6+:prop的4种赋值: $( 阅读全文
posted @ 2013-10-27 11:39 dennys 阅读(172) 评论(0) 推荐(0) 编辑
摘要: C#接口作为返回值 阅读全文
posted @ 2013-10-23 23:22 dennys 阅读(376) 评论(0) 推荐(0) 编辑
摘要: string strSql = string.Format(@"Select * from tb1 where UserName={0}", username);不能防止Sql注入,但是比拼接字符串节约内存,简洁直观 阅读全文
posted @ 2013-10-23 23:07 dennys 阅读(979) 评论(0) 推荐(0) 编辑
摘要: string.Empty即是"" 分配内存,指向固定null未分配内存,判断一个字符变量是否为空,最好用IsEmptyOrNull()方法, 字符串为null或为""时都可以判断出来,这两种情况都会返回true 阅读全文
posted @ 2013-10-23 23:02 dennys 阅读(440) 评论(0) 推荐(0) 编辑
摘要: google搜索,显示一致,oracle 和sqlserver引擎都会转换成is not null 阅读全文
posted @ 2013-10-23 23:01 dennys 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 学生(学号,姓名,班级代号)课程(课程号,课程名称,学分数)成绩(学号,课程号,成绩)CREATE TABLE [dbo].[Class]([ClassID] [int] NULL,[ClassName] [nvarchar](10) NULL) ON [PRIMARY]1一班2二班3三班CREATE TABLE [dbo].[Student]([StudentID] [nvarchar](10) NULL,[StudentName] [nvarchar](50) NULL,[ClassID] [int] NULL) ON [PRIMARY]2009001小宋12009002小李1200900 阅读全文
posted @ 2013-10-18 22:16 dennys 阅读(673) 评论(0) 推荐(0) 编辑
摘要: Install VS2008, 2010 and SQL 2008 R2, generates installer error 輸入者 Burt.Harris已關閉解決方法為:外部90登入 以投票 類型: 錯誤 識別碼: 640350 已開啟: 2011/1/30 下午 01:02:52 存取限制: 公用 1 因應措施檢視3使用者可以重現這個錯誤 Installing SQL Server 2008 R2 Developer Edition on top of VS 2008... 阅读全文
posted @ 2013-06-06 11:49 dennys 阅读(196) 评论(0) 推荐(0) 编辑