摘要: [代码] 阅读全文
posted @ 2009-02-04 22:06 天际翔龙 阅读(1676) 评论(0) 推荐(0)
摘要: [代码] 阅读全文
posted @ 2009-02-04 11:43 天际翔龙 阅读(276) 评论(0) 推荐(0)
摘要: [代码] 阅读全文
posted @ 2008-11-03 15:33 天际翔龙 阅读(425) 评论(1) 推荐(0)
摘要: [代码]註解DAY、MONTH 和 YEAR 函數分別是 DATEPART(dd, date)、DATEPART(mm, date) 和DATEPART(yy, date) 的同義字。引數datepart這是指定要傳回之日期部份的參數。下表列出 Microsoft SQL Server 2005 所識別之日期部份和縮寫。 日期部份 縮寫 year yy, yyyy quarter qq, q mo... 阅读全文
posted @ 2008-09-19 13:37 天际翔龙 阅读(7174) 评论(0) 推荐(0)
摘要: [代码] 阅读全文
posted @ 2008-08-04 09:02 天际翔龙 阅读(314) 评论(0) 推荐(0)
摘要: 常用的二列布局,外容器Div定義class為container, 包含class分別為left 和main兩個子DIV,下邊是class為foot的Div當我們想在container和foot之間加一點間隙時,fifefox卻發起了脾氣代碼如下:[代码]以上代碼在IE6中能正常顯示,但是在firefox中container和footer之間沒有間隙,也就是說margin-bottom:20沒起作用... 阅读全文
posted @ 2008-06-18 12:23 天际翔龙 阅读(1084) 评论(0) 推荐(0)
摘要: declare@pricemoneyset@price=123456789selectconvert(varchar,@price,1) 阅读全文
posted @ 2008-06-16 20:51 天际翔龙 阅读(1649) 评论(0) 推荐(0)
摘要: 在发生错误页抛出自定义异常,然后,统一页面显示异常信息 Global.asax:Application_Error事件,用于捕获自定义异常信息,并存入Application void Application_Error(object sender, EventArgs e) { //取得异常 Exception error = Server.GetLas... 阅读全文
posted @ 2008-06-11 00:00 天际翔龙 阅读(308) 评论(0) 推荐(0)
摘要: 一列变三列的例子: select max(case rownumber % 3 when 2 then id else null end) as id1, max(case rownumber % 3 when 2 then [text] else null end) as text1, max(case rownumber % 3 when 1 then id else null end) a... 阅读全文
posted @ 2008-06-03 23:44 天际翔龙 阅读(3633) 评论(6) 推荐(0)
摘要: firefox,IE中默認span標記設置width值無效,顯示只根據內容長短變化 解決辦法如下: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->span{}{ display:-moz-inline-box; /**//*firef... 阅读全文
posted @ 2008-05-28 11:26 天际翔龙 阅读(2791) 评论(4) 推荐(0)