天天看點

asp.net Repeater等資料控件模版内部2個DropDownList控件級聯

1、建立一個從DropDownList繼承的擴充類CommandableDropDownList.cs,代碼如下:

2、在需要使用的頁面頭部加上如下标記:

<%@ Register TagPrefix="ddlTag" Namespace="GrowthMonitor.BaseClass" Assembly="GrowthMonitor" %>

3、在Repeater中的DropDownList

4、背景事件代碼