Following upgrade to 2005 beta 2, code that was previously fine is now producing an error:
"-> System.Web.UI.Control.EnsureID() is inaccessible due to its protection level"
Firstly - what is the change, I can't seem to find documentation, and also - is there ever a real need to use this method? Entering controls dynamically into a table. For now, if a control fails to build I insert an errorLabel. More than one in a table - should they have the EnsureID method called?
Thanks for your help,
Steve
Code:
Label errorLabel = new Label();
errorLabel.EnsureID();
"-> System.Web.UI.Control.EnsureID() is inaccessible due to its protection level"
Firstly - what is the change, I can't seem to find documentation, and also - is there ever a real need to use this method? Entering controls dynamically into a table. For now, if a control fails to build I insert an errorLabel. More than one in a table - should they have the EnsureID method called?
Thanks for your help,
Steve