【发布时间】:2011-12-02 05:45:35
【问题描述】:
我得到了错误
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>
【问题讨论】:
-
它在标题中,我也会在问题中发布它
-
.net framework (ASP.NET) 的版本是多少?