发生错误,因为无法找到id为'ctl04'的控件,或者在回发后为同一ID分配了不同的控件。如果未分配ID,请明确设置ID ... [英] An error has occurred because a control with id 'ctl04' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID...

查看:226
本文介绍了发生错误,因为无法找到id为'ctl04'的控件,或者在回发后为同一ID分配了不同的控件。如果未分配ID,请明确设置ID ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在我的应用程序中,我正在从Web服务中读取数据并动态创建选项卡控件,并且还绑定网格视图数据。当我第一次运行它完美运行时。点击数据gridview分页索引(例如2或3 ..)后出现错误。



错误:



hi all,

In my application I'm reading data from web service and to create tab control dynamically, and bind the grid view data also. When I run the first time it's running perfectly. After hit the data gridview paging index (ex. 2 or 3..) the error is came.

error:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 Exception Details: System.Web.HttpException: An error has occurred because a control with id 'ctl04' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.





任何人都可以告诉我怎么解决这个问题?



先谢谢。



can any one tell me how can solve this?

Thanks in advance.

推荐答案

嘿,

我有同样的问题,你怎么弄清楚这个问题?

非常感谢!
Hey,
I have the same issue, how have you figure out this problem ?
Thanks a lot !


这篇关于发生错误,因为无法找到id为'ctl04'的控件,或者在回发后为同一ID分配了不同的控件。如果未分配ID,请明确设置ID ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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