這個公司項目中的一個需求,效果是列印gmap裡一個彈出層的內容,由於頁面本身就已經有一個列印全頁內容的功能,本來是想能過改變列印樣式檔案來實現這個功能的,但發現如果使用者先列印這個彈出層的內容後,再列印全頁內容的時候,樣式檔案沒法變回原來的那個,也就是說沒法確定改回原來的那個樣式檔案的時間點,由於時間比較緊,所以用的是window.open方法實現的。現在項目接近尾聲,所以抽空寫了個iframe版的。這樣就沒用前面講到的問題了,也不用擔心使用者的瀏覽器屏蔽掉快顯視窗的問題了。 function
SQL2005:開啟SQL2005的組態工具-->SQL Server 2005介面區配置器-->服務和串連的介面區配置器 -->Database Engine -->遠端連線,選擇本地串連和遠端連線並選上同時使用Tcp/Ip和named pipes.(附:如何配置 SQL Server 2005 以允許遠端連線:http://support.microsoft.com/kb/914277/zh-cn )SQL2008:開啟SQL Server Management
可能會遇到的錯誤資訊如下:Error converting data type varchar to uniqueidentifier或conversion failed when converting from a character string to uniqueidentifier 你先需要將字串轉換為uniqueidentifier類型. 舉例如下:declare @guid uniqueidentifier select @guid =
小寫了個ListView匯出到Excel表格的方法! using Microsoft.Office.Interop.Excel;(11.0.0.0)不知道其他版本支援不!不過一般都不支援以前版本. CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public static void ExpToExcel(ListView listView){
CCP(The Common Closure Principle,共同封閉原則)包中的所有類對於同一類性質的變化應該是共同封閉的。 The classes in a package should be closed together against the same kinds of changes. a change that affects a package affects all the classes in that
SDP(The Stable Dependencies Principle,穩定依賴原則)朝著穩定的方向進行依賴。 The dependencies between packages in a design should be in the direction of the stability of the packages. A package should only depend upon packages that are more stable that it
快速回顧Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->知識點:1.GridView和ObjectDataSource綁定,其中配置資料來源的時候,參數是對象形如:ModifyAdmin(Admin admin)2.GridView套GridView 和加入圖片加入圖片(看下面的第2點,紅色標記的)1.Temp頁面的說明:(傳一個對象參數) 1.