- You have two or more controls on the page. - Sorry for stating the obvious.
- This could mean that you have two user controls that each contain a control with the same ID.
- The Page_Load event is getting called twice.
- If you have migrated to a newer version of .Net, you may have experienced that Visual Studio has very kindly added a second call to the event handler - so look for this and get rid!
- Set the AutoEventWireup to false.
- (msdn) the ASP.NET page framework also supports an automatic way to associate page events and methods. If the AutoEventWireup attribute of the Page directive is set to true (or if it is missing, since by default it is true), the page framework calls page events automatically, specifically the Page_Init and Page_Load methods. In that case, no explicit Handles clause or delegate is needed.
Sunday, 25 April 2010
Multiple controls with the same ID '***' were found
I have come across this issue a few times. I have experienced two causes:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment