在ASP.net中需要帮助解决BC30456错误 [英] Need Help with BC30456 error in ASP.net
问题描述
我不确定在哪里发表我的问题;没有Visual Web Development类别。所以我在这里张贴。请有人帮助我。我是一名学生,正在使用ASP.net为我的期末考试开发一个项目。在我的项目中,我正在使用中继器。但我不能
似乎使用OnItemCommand或OnCommand。它显示了这个编译错误,例如
BC30456:'selectitem'不是'ASP.usermainform_aspx'的成员。此错误显示在我的表单中的所有中继器中,即使我创建了一个新的不同项目并在那里创建了一个新的中继器,它也会显示。
请有人帮忙。我正在使用Visual Web Express Edition。感谢任何帮助。
我刚刚解决了这个问题 - - 抱歉打扰了。对于任何可能遇到类似错误的人:如果您在转发器或数据列表中放置OnItemCommand或OnItemClick或其他任何内容,请确保您的代码隐藏中也有此功能(即使您还是
)里面有代码):
受保护的 Sub selectitem( ByVal 发件人 As Object , ByVal e As RepeaterCommandEventArgs)
结束 Sub
Hi,
I'm not sure where to post my question; there's no Visual Web Development category. So I'm posting it here. Pls can somebody help me. I'm a student and developing a project for my final exams using ASP.net. In my project, I'm using a repeater. But I can't seem to use OnItemCommand or OnCommand. It's showing this compilation error, e.g. BC30456: 'selectitem' is not a member of 'ASP.usermainform_aspx'. This error shows in all repeaters across my forms AND it also shows even if I create a new different Project and create a new repeater there.
Please can somebody help. I'm using Visual Web Express Edition. Appreciate any help.
解决方案Hi,
I just solved this -- sorry for the bother. For anybody who'll maybe come across a similar error: If you put an OnItemCommand or OnItemClick or whatever inside your repeater or datalist, make sure you also have this in your code-behind (even if you still don't have the codes inside it yet):
Protected Sub selectitem(ByVal Sender As Object, ByVal e As RepeaterCommandEventArgs) End Sub
这篇关于在ASP.net中需要帮助解决BC30456错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆