Another object on this page already uses ID 'X

2019-07-11 05:40发布

问题:

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?

Thanks

回答1:

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