It is an abbreviation for the Document Object Model for HTML
目前分類:C# (67)
- Jan 08 Tue 2008 17:31
DOM
- Dec 24 Mon 2007 13:27
ASP.Net 2.0: Export GridView to Excel - Part II
Introduction:
The article "ASP.Net 2.0: Export GridView to Excel" received a very good response from our user community. Some of the excellent tips collected from the user feedback have been included in the first version of the article.
- Dec 24 Mon 2007 13:26
ASP.Net 2.0: Export GridView to Excel
Introduction:
In this article, we will see how to Export an ASP.Net 2.0 GridView to Excel.
- Dec 21 Fri 2007 16:26
從ASP.CS呼叫ASP網頁中的Javascript函數
<head runat="server">
<title>未命名頁面</title>
- Dec 19 Wed 2007 12:04
控定表單預設按鈕與焦點
form1.DefaultButton = "btn_submit";
form1.DefaultFocus = "txt_what";
- Dec 18 Tue 2007 16:08
ADO 連線、下命令、讀取
//建立連線
SqlConnection conn;
- Dec 18 Tue 2007 16:00
DropDownList加入資料
DropDownList.Items.Add("ABC");
- Dec 18 Tue 2007 15:53
如何讀出陣列所有的值
string[ ] which = new string[3] { "員工名稱", "員工代號","部門代號"};
for (int i = 0; i <= which.GetUpperBound(0) ; i++)
- Dec 18 Tue 2007 15:48
DropDownList 觸發事件
DropDownList 控制項會在使用者選取項目時,引發 SelectedIndexChanged 事件。根據預設,這個事件不會造成網頁張貼至伺服器,但您可以將 AutoPostBack 屬性設定為 true(這是重點),讓控制項強制執行立即張貼。
- Dec 14 Fri 2007 16:01
委派(Delegate)
一種「方法的指標」,利用委派可以間接叫用方法。主要應用在「事件的驅動」
如何使用:
- Dec 14 Fri 2007 09:58
如何清除文字方塊的預設文字
我想在文字方塊上預設文字「請輸入你的帳號」,然後等使用者將滑鼠或游標點入文字方塊時,文字方塊內的文字就會清除為空白,可以讓使用者輸入資料。因為我發現TextBox的事件只有TextChanged(),沒有Focus等事件,這樣要怎麼寫呢。
我使用C#,謝謝。
- Dec 13 Thu 2007 17:40
重寫(Overriding)
有兩種方式:
1.子類別透過new來取代父類別的成員
- Dec 13 Thu 2007 17:17
命名空間(Namespace)
在宣告該命名空間的所屬專案內,皆能叫用該命名空間
只要透過using 關鍵字即可匯入命名空間,當然事先必須加入該命名空間所屬的參考
- Dec 13 Thu 2007 16:05
物件導向基本概念
類別和物件(Class and Object):類別是用來描述某物件的結構,而物件是把變數(Variable)、屬性(Property)和方法(Method)包在一起的一種軟體技術,為某類別的「執行個體」。我們將Class視為車體設計圖,那麼Object就是依據車體設計圖所打造出的汽車。
class familyA //類別
- Dec 13 Thu 2007 15:38
建構函式和解構函式
建構函式就是類別的「方法」,主要對物件進行初始化設定,當對類別進行「實體化(new)」成為物件時,便會自動執行建構函式。
1.建構函式名稱與類別名稱相同
- Dec 12 Wed 2007 17:55
何謂衍生類別(子類別)
public class father
{ }