1、建立一個從DropDownList繼承的擴充類CommandableDropDownList.cs,代碼如下:
2、在需要使用的頁面頭部加上如下标記:
<%@ Register TagPrefix="ddlTag" Namespace="GrowthMonitor.BaseClass" Assembly="GrowthMonitor" %>
3、在Repeater中的DropDownList
4、背景事件代碼
1、建立一個從DropDownList繼承的擴充類CommandableDropDownList.cs,代碼如下:
2、在需要使用的頁面頭部加上如下标記:
<%@ Register TagPrefix="ddlTag" Namespace="GrowthMonitor.BaseClass" Assembly="GrowthMonitor" %>
3、在Repeater中的DropDownList
4、背景事件代碼