asp.net – Handles子句需要在包含类型或其基类型之一中定义的WithEvents变量
发布时间:2020-05-25 09:11:13 所属栏目:asp.Net 来源:互联网
导读:我收到了错误 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, By
|
我收到了错误 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>
解决方法升级旧页面时遇到此问题.问题在于Inherits属性@Page指令有错误的命名空间.>更正Inherits属性的名称空间>删除设计器文件中的命名空间或在设计器代码中与其匹配 (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
推荐文章
站长推荐
- 当在ASP.NET中调用AppInitialize方法时?
- asp.net-mvc – @ Html.HiddenFor返回null值
- ASP.NET身份两个因素不起作用 – Cookie问题?
- asp.net-mvc – 如何将默认值显示为空白而不是类
- asp.net – 无法获取管道:loadVisitor(domain:
- asp.net – 检查表单是否有密钥?
- asp.net-mvc-3 – 任何好的样品开始使用Dapper?
- asp.net-mvc – 具有接受routeValues和htmlAttri
- asp.net-mvc – 类型“表达式”在未引用的程序集
- asp.net-mvc – KendoUI网格显示总记录数
热点阅读
