博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年4月30日

摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runa... 阅读全文

posted @ 2009-04-30 18:22 緗灵 阅读(635) 评论(0) 推荐(0)

2009年4月23日

摘要: select top 10 from table order by newid();--随机产生10个。 阅读全文

posted @ 2009-04-23 17:39 緗灵 阅读(229) 评论(1) 推荐(0)

摘要: 第一种方法:把下面的代码加入网页的<head>与</head>之间:<styletype="text/css">*{filter:Gray;}</style>第二种方法:把下面的代码加入网站的CSS文件中:*{filter:Gray;}上面的代码可以使除了FLASH之外的网页所有元素变灰,如果网页中含有FLASH,可以使用下面的方法使FLASH变灰:... 阅读全文

posted @ 2009-04-23 09:19 緗灵 阅读(879) 评论(0) 推荐(0)

2009年4月22日

摘要: 形式 语法 结果 注释 数字 {0:N2} 12.36 数字 {0:N0} 13 货币 {0:c2} $12.36 货币 {0:c4} $12.3656 货币 "¥{0:N2}" ¥12.36 科学计数法 {0:E3} 1.23E+001 百分数 {0:P} 12.25% P and p present the same. 日期 {0:D} 2006年11月25日 日期... 阅读全文

posted @ 2009-04-22 15:49 緗灵 阅读(221) 评论(0) 推荐(0)

2009年4月15日

摘要: 从一个页面A传到另一个页面B: A: B:lblbiaoti.Text = Request.Form["txtbiaoti"].ToString(); lblxiaoqu.Text = (PreviousPage.FindControl("txtloupanmc") as TextBox).Text; lblquyu.Text = (PreviousPage.FindCon... 阅读全文

posted @ 2009-04-15 11:39 緗灵 阅读(143) 评论(0) 推荐(0)

摘要: select count(name) from syscolumns where id=(select id from sysobjects where xtype='u' and name='表名') 阅读全文

posted @ 2009-04-15 10:54 緗灵 阅读(853) 评论(0) 推荐(0)

2009年4月14日

摘要: js var backurl=document.referrer; jsp "> 阅读全文

posted @ 2009-04-14 11:34 緗灵 阅读(1681) 评论(0) 推荐(0)

2009年4月8日

摘要: //弹出窗口 function OpenWin(url) { w = window.screen.width; h = window.screen.height; window.showModalDialog(url, '', 'dialogWidth:' + w + ';dialogHeight:' + h + ';... 阅读全文

posted @ 2009-04-08 11:56 緗灵 阅读(142) 评论(0) 推荐(0)

摘要: 全选 反选 //全选与全不选 function checkAll(obj) { //方法一 $(".cbl input").attr("checked", obj.checked); } //一个按钮控制全选和全不选 function quanxuan() { if... 阅读全文

posted @ 2009-04-08 11:02 緗灵 阅读(201) 评论(0) 推荐(0)

2009年4月3日

摘要: 1、if (!Page_ClientValidate()) { return false; }//客户端验证 阅读全文

posted @ 2009-04-03 13:01 緗灵 阅读(190) 评论(0) 推荐(0)