[習題]動態新增 DropDownList或 ListBox底下的新項目(Item)#6 [左右搬移](單選)ListItem的 .Add("字串")與 .Add(ListItem)方法

摘要:[習題]動態新增 DropDownList或 ListBox底下的新項目(Item)#6 [左右搬移](單選)ListItem的 .Add("字串")與 .Add(ListItem)方法

...繼續閱讀 »

GridView自訂分頁樣式#1(以下拉式選單,DropDownList做分頁)與分頁樣版(PagerTemplate)-- TopPagerRow與 BottomPagerRow屬性

摘要:GridView自訂分頁樣式 #1(下拉式選單,DropDownList)與分頁樣版(PagerTemplate)-- TopPagerRow與 BottomPagerRow屬性

我想把 GridView分頁的樣式,改成下拉式選單(DropDownList)。本範例提供 Youtube教學影片

...繼續閱讀 »

[ADO.NET] Web Form為求快速,可使用 DataReader直接處理資料來源

引述「Professional in ASP.NET 4 in C# and VB / Wrox出版」
在大多數處理 Web Form的情況下,都應使用 DataReader,而不是創建 DataSet。

微軟MSDN網站有提到 -- ASP.NET效能概觀
如果可行的話,請使用 SqlDataReader 類別,因為該類別提供的效能比 DataSet 類別好。

...繼續閱讀 »