asp.net – Handles子句需要在包含类型或其基类型之一中定义的Wi
发布时间:2020-12-16 04:30:32 所属栏目: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,ByVal e As System.EventArgs) _
我收到了错误
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-identity – asp.net标识有什么用.GenerateUserTok
- asp.net-mvc – 如何在Razor帮助器中使用UrlHelper?
- asp-classic – 在VBScript中检查NULL的错误
- validation – Controller.ValidateModel方法.它是如何工作
- asp.net-mvc – MVC中的IE7仅样式表
- asp.net-mvc – ASP.Net MVC:Html.Display()用于Collectio
- asp.net-mvc – 如何在MVC3 Razor中禁用DropDownListFor?
- asp.net – 504服务器上的错误
- asp.net – 用户控件(ascx)和属性
- asp.net-mvc – “信号量超时期限已过期”SQL Azure
推荐文章
站长推荐
- 自KB4338419以来,无法再从Classic ASP创建C#COM对
- .net – 不能使用moles来模拟MVC框架
- asp.net-mvc-3 – FluentValidation入门问题
- asp.net-mvc – DataAnnotations StringLength属
- asp.net-mvc – “继承”ASP.NET MVC网站从一个常
- asp.net-mvc-3 – 我需要什么样的路线才能提供虚
- asp.net-mvc-3 – 用于ASP的Telerik扩展. NET MV
- asp.net – SOAP 1.2在SOAP 1.1工作时产生错误请
- asp.net – App_Data / ASPNETDB.MDF到Sql Serve
- asp.net-mvc – ASP.NET MVC路由两个GUID
热点阅读