c#.net id duplicate reported untruthfully
Posted
by
tracer tong
on Stack Overflow
See other posts from Stack Overflow
or by tracer tong
Published on 2012-09-18T15:08:36Z
Indexed on
2012/09/18
15:37 UTC
Read the original article
Hit count: 202
I am getting an error in visual studio that appears to be flat out wrong. Here it is:
The tag contains duplicate 'ID' attributes.
on the following line:
Rica.Yoodul.MiniSites.BaseMiniSiteUserControl ucMaster = (Rica.Yoodul.MiniSites.BaseMiniSiteUserControl)Page.LoadControl("~/MiniSites/" + templateName + "/Master.ascx");
I have checked though both the master and child pages for repeats of the id I last added (the only one added since last successful test) and the ID is used once across both files. Other than controls (e.g ), is there anything this error refers to? Or is there a workaround? I have checked I am editing the right files.
On the face of it this appears to be a visual studio bug, but I want to be sure.
© Stack Overflow or respective owner