2009年6月2日

摘要: 我们开发数据库应用时,常常需要用到模糊查询。如果同一个条件需要匹配很多字段怎么办呢?通常,程序员会每个字段都在SQL中“field like'%cond%'”一次。这样,SQL语句会长得惊人,碰上复杂一点的,甚至SQL语句会因为超长而被数据库拒绝执行。其实,这个问题只要动动脑筋就很容易解决:首先,将要匹配相同条件的字段连起来(field1+field2+...)成一个长字符... 阅读全文
posted @ 2009-06-02 12:03 广波 阅读(1562) 评论(0) 推荐(0) 编辑
摘要: 链接有两种,一种是不同页面间的链接。另外一种是页内链接,我们一般称为页内锚链接。 1.加锚链   定义好“锚”以后,将链接指向锚位置的链接形式如下:   <a href=″#id″>....</a>,即以#再加上id格式。   如:   <a href=″#chapter1″>第一章<... 阅读全文
posted @ 2009-06-02 12:01 广波 阅读(1996) 评论(0) 推荐(0) 编辑

2009年6月1日

摘要: 设置为首页的方法为: <a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('URL');event.returnValue=false;">设为首页</a> URL就是你要设定的网址地址 要设置当前网页的地址为首页,你可以这样: <a href=# onCli... 阅读全文
posted @ 2009-06-01 10:12 广波 阅读(2880) 评论(0) 推荐(0) 编辑

2009年5月19日

摘要: 1、DateTime 数字型 以下是引用片段:System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int... 阅读全文
posted @ 2009-05-19 17:56 广波 阅读(367) 评论(0) 推荐(0) 编辑

2009年4月13日

摘要: 返回上一级页面 阅读全文
posted @ 2009-04-13 09:12 广波 阅读(329) 评论(0) 推荐(0) 编辑

2009年4月7日

摘要: thisAdapter.Fill(thisDataSet,"tb");DataTable thisTable = thisDs.Tables["tb"];DataView thisView = new DataView(thisTable); //创建DataView对象thisView.RowFilter = ....;DataGrid.DataSource = thisView;...a,使用... 阅读全文
posted @ 2009-04-07 17:31 广波 阅读(1715) 评论(0) 推荐(1) 编辑

2009年3月25日

摘要: 这时你查看源文件就不会看到有代码了~~~~ 阅读全文
posted @ 2009-03-25 13:17 广波 阅读(304) 评论(2) 推荐(0) 编辑

2009年3月24日

摘要: sys.webforms.pagerequestmanagerparsererrorexception 这样的错误是因为无刷新组件所激发的时间里含有: Response.Redirect("urlpath"); 语句块 。 阅读全文
posted @ 2009-03-24 16:52 广波 阅读(242) 评论(0) 推荐(0) 编辑

2009年3月21日

摘要: 1. 在web.config里面增加 2。编码 using System.Collections.Specialized; string s = System.Text.Encoding.UTF8.GetString(Request.BinaryRead(Request.ContentLength)); NameValueCollection form = HttpUtility.ParseQ... 阅读全文
posted @ 2009-03-21 11:43 广波 阅读(1133) 评论(0) 推荐(0) 编辑

2009年3月13日

摘要: window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no') //要写成一行 参数解释: js脚本结束 阅读全文
posted @ 2009-03-13 14:41 广波 阅读(1609) 评论(0) 推荐(0) 编辑

导航