此页面上的其他对象已经使用ID“XXXXXXX” [英] Another object on this page already uses ID 'XXXXXXX'

查看:178
本文介绍了此页面上的其他对象已经使用ID“XXXXXXX”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了从Visual Studio 2010,在我的ASP.net项目中的每一个控件具有重复ID警告。这显然​​不是这样的,因为我命名的页面上自己所有的百元左右的控制,我确信不要让任何重复。有没有其他人遇到了这一点,并找到了解决?

I am receiving a warning from Visual Studio 2010 that every single control in my ASP.net project has a duplicate ID. This is obviously not the case, since I named all hundred or so controls on the page myself, and I made sure not to allow any duplicates. Has anyone else run into this and found a fix?

感谢

推荐答案

重新启动偶尔会工作,但往往解决方法是右击未渲染控件,然后选择更新。这是卓有成效的。

restarting will work occasionally, but often the solution is to right click the "unrendered" control and select 'update'. This does the trick.

这篇关于此页面上的其他对象已经使用ID“XXXXXXX”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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