I had a problem with changing the identifier property of dynamically loaded UserControls during the page life cycle. In particular, the ID property changes when the system calls Page.Form.RenderControl (htmlTextWriter); Before it is called, the control has the identifier "ctl84", but after the call, it has the identifier "ctl99".
The result from htmlTextWriter contains the original identifier, however, checking the Control ID property in the VS 2008 debugger shows that it has changed.
The application runs in MCMS 2002 (Microsoft CMS 2002), using .NET 2.0, converted from 1.1 and xhtmlConformance = "Legacy" is not included.
I need the ID to be constant throughout the life of the page.
Edit: manually setting the ID property is not an option.
source
share