Time of Update: 2018-12-05
先看這樣的一個例子:點擊"多線程訪問"按鈕標籤中文本"此標籤被另一個線程設定文本"會變為"Hello"!代碼是這樣寫的:/// <summary>/// 設定標籤的文本/// </summary>private void SetLableText(){ this.label1.Text = "Hello!";} /// <summary>/// 設定標籤的按鈕事件/// </summary>/// <param
Time of Update: 2018-12-05
我們可以使用.foreach命令來加工一個或多個debugger命令的輸出結果, 可以把結果集中的每一條結果作為參數傳遞給一個或多個其他的命令. 文法:.foreach [Options] ( Variable { InCommands } ) { OutCommands }.foreach [Options] /s ( Variable "InString" ) { OutCommands }.foreach [Options] /f ( Variable "InFile" ) {
Time of Update: 2018-12-05
1.設定web.config檔案。<system.web> ...... <globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312" /> ...... </system.web> 或者:aspx檔案中:<meta http-equiv="Content-Type" content="text/html;
Time of Update: 2018-12-05
GridView分頁方法<PagerTemplate> <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server">第一頁</asp:LinkButton> <asp:LinkButton CommandName="Page" CommandArgument="Prev"
Time of Update: 2018-12-05
方法1:(在代碼中加) listbox1.Items.Add(new ListItem("請選擇遊戲類別","-1"));方法2:(sql 語句中加) select '請選擇遊戲類別','-1' union select 類別名稱,類別值 from 遊戲表 select '請選擇遊戲類別' as 類別名稱,'-1' as 類別值 union select 類別名稱,類別值 from 遊戲表 order by 類別值 方法3 asp.net2.0:
Time of Update: 2018-12-05
Hello jQuery=======空白HTML頁面代碼, 僅僅載入了jquery.js庫.<html><head> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> // we will
Time of Update: 2018-12-05
keycode 0 =keycode 1 =keycode 2 =keycode 3 =keycode 4 =keycode 5 =keycode 6 =keycode 7 =keycode 8 = BackSpace BackSpacekeycode 9 = Tab Tabkeycode 10 =keycode 11 =keycode 12 = Clearkeycode 13 = Enterkeycode 14 =keycode 15 =keycode
Time of Update: 2018-12-05
DATEDIFF 函數 [日期和時間] 作用 返回兩個日期之間的間隔。 文法 DATEDIFF ( date-part, date-expression1, date-expression2 ) date-part : year | quarter | month | week | day | hour | minute | second |
Time of Update: 2018-12-05
發現很多情況下,MSN傳輸檔案比QQ要慢,倒不是說msn沒有快的時候,但是大部分的時候是真的比QQ慢,連我這種神經比較大條的人都注意到了,Google了一下,早就有人做瞭解答,基本上就是說msn傳輸檔案是使用TCP,而QQ使用UDP,剩下的事情就是論證TCP傳輸檔案沒有UDP快。大概的就是下面的幾個觀點:1.
Time of Update: 2018-12-05
GridView控制項批次更新CS代碼: protected void ButtontBatchPrice_Click(object sender, EventArgs e) { CheckBox cb=new CheckBox(); for (int i = 0; i < GridView1.Rows.Count;i++ ) { cb =
Time of Update: 2018-12-05
幾個常用Request.ServerVariables本檔案ip路徑:<%="http://" & request.servervariables("server_name")&request.servervariables("script_name") %> 本機ip:<%=request.servervariables("remote_addr")%> 伺服器名:<%=Request.ServerVariables("SERVER_NAME")%
Time of Update: 2018-12-05
高亮顯示GridView當前行 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='yellow',this.style.fontWeight='bold'");
Time of Update: 2018-12-05
1、資料來源,繼承java.sql.datasource,屬於dbcp串連池中的資料來源。2、DBCP是用來培植串連池的需要的包:Commons-Pool
Time of Update: 2018-12-05
很久沒有在這邊寫技術類的Blog,感覺自己脫離coding已經好久了。最近一直在玩一些server端的產品,諸如,Reporting Services,Biztalk Server 2004,SQL Server 2005等一些東西。要不就是做一些整合之類的解決方案。雖然一直以來堅持,工作,不過是生活中很小很小的一塊蛋糕,雖然它佔據了我們大部分的時間和精力。但他還是一塊小蛋糕而已。今時今日,對於技術類的文章,已經連個開頭都寫不下去了,沒有絲毫的興趣。基本上,部落格園還是一個以技術為主的Blog,
Time of Update: 2018-12-05
(1)做一個winform 來定時發郵件。然後通過windows計劃任務,設定為指定時間,每次自動運行,運行完畢後自動關閉。 (2)用sqlserver 資料庫實現發郵件,用sqlserver實現發郵件的預存程序,然後制定一個作業,制定時間運行。 (3)在 Global.asax 檔案裡編程。事件:Application_Start。利用Time類編程。比如伺服器1秒鐘執行一次判斷。
Time of Update: 2018-12-05
Atlas出現'sys'未定義的指令碼錯誤解決方案(sys
Time of Update: 2018-12-05
.NET為我們提供了不少驗證控制項,一定程度上減少了程式員在開發上的工作量,但是有很多時候我們往往會需要自訂一些自己的驗證流程,而無法通過.NET中所提供的驗證控制項來完成。通常驗證的話,分為用戶端和伺服器端驗證,這裡我們所提到的驗證都是指用戶端驗證。最常見的做法便是自己寫一段JavsScript指令碼,根據驗證是否通過返回true或者是false。然後通過controlID.Attribute[“事件“] =
Time of Update: 2018-12-05
首先確認在機器上已經安裝了如下東西Microsoft Windows SharePoint ServicesMicrosoft Office SharePoint Portal Server 2003(可選)Microsoft Visual Studio .NETWeb Part infrastructure當你機器上面安裝SharePoint Products and Technologies Templates: Web Part Templates for Visual Studio
Time of Update: 2018-12-05
微軟所提供的Reports Starter Kit給我們展示一種多視圖的報表解決方案,這裡僅僅只是討論一下關於裡面PieChart和BarChart的實現,以及如何利用GDI+來開發我們自己的報表系統。在System.Drawing
Time of Update: 2018-12-05
由於MS Data Access Application Block是一款相對比較成熟的資料訪問組件,同時又公開原始碼,便打算在這次的項目中不再另外寫資料訪問層,直接用Data Access Application