INamingContainer, what are you doing with that MasterPage?
The master pages feature in the new .NET 2.0 framework is great. Better said, there is nothing that can compare to it! And that makes it even more frustrating, that the MasterPage class implements the INamingContainer interface. Besides that, there is no need for the MasterPage to implement that interface, because the ContentPlaceHolder -usually used within a master page- implement the INamingContainer interface too. So when ensuring a control's uniqueness, the ContentPlaceHolder would do just fine. Or.....
Is this true? Why does the MasterPage implement this interface? And is there a possibility to NOT use the INamingContainer, but keep using those amazing Master Pages?
I'm generating my interfaces from the database and therefore I know that my interfaces have a unique id. But now I have the problem, I can't find them anymore, because an INamingContainer 'renames' my controls.
Who can help me on this one?
[1023 byte] By [
DeKale] at [2007-12-16]