我收到了错误
Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
在以下代码中..
Public Sub selCurrentManuf_SelectedIndexChanged(ByVal sender As System.Object,ByVal e As System.EventArgs) _ Handles selCurrentManuf.SelectedIndexChanged End Sub
随附的下拉列表如下……
<asp:DropDownList OnSelectedIndexChanged="selCurrentManuf_SelectedIndexChanged" selectedvalue='<%#Container.DataItem("c1_manufidcurrent")%>' ID="selCurrentManuf" Runat="Server" DataTextField="c4_Desc" DataValueField="c4_manufid" DataSource="<%# GetCurrentManuf() %>" autopostback="true" ></asp:DropDownList>