我在下拉列表中有一个错误 [英] I have an error in dropdownlist

查看:67
本文介绍了我在下拉列表中有一个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


加载Webform时出现错误,错误写在下面

``ASP.frm_repairpart_aspx''不包含``ddlareaofamc_SelectedIndexChanged1''的定义,并且找不到扩展方法``ddlareaofamc_SelectedIndexChanged1''接受类型为'ASP.frm_repairpart_aspx'的第一个参数(您是否缺少使用指令还是装配参考?)

解决方案是什么,请给我个主意.
预先感谢.

Hi,
I have an error when loading webform and the error is written below

''ASP.frm_repairpart_aspx'' does not contain a definition for ''ddlareaofamc_SelectedIndexChanged1'' and no extension method ''ddlareaofamc_SelectedIndexChanged1'' accepting a first argument of type ''ASP.frm_repairpart_aspx'' could be found (are you missing a using directive or an assembly reference?)

What would be the solution please give me idea.
Thanks in advance.

推荐答案

ddlareaofamc_SelectedIndexChanged1


这是方法,希望您不要在CS文件中定义此方法.
右键单击ddlareaofamc
goto属性
事件
在事件中查看onselectedindexchanged
ddlareaofamc_SelectedIndexChanged1方法将出现
输入此方法
您将使用此方法出现在CS页面上


this is the method and hope you would not define this method in cs file.
right click on ddlareaofamc
goto properties
events
see in events onselectedindexchanged
ddlareaofamc_SelectedIndexChanged1 method will appear
enter on this method
you will be appear on cs page with this method


确保您已在表单上定义了"SelectedIndexChanged1"事件
Make Sure U have defined the ''SelectedIndexChanged1'' event on the form


尝试检查标记是否为OnSelectedIndexChanged属性指定了正确的方法名称.
Try to check the mark up whether you have given the right method name to OnSelectedIndexChanged property .


这篇关于我在下拉列表中有一个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆