Disable creation of member variables for ascx control

I have an ascx control which derives from a base class, which already
has members for child controls in the ascx. If I edit the ascx in visual
studio 2005, the derived class get's automatically the same members
which hide these from the base class.

The compiler shows an warning, but the code compiles but does not work,
because I have the child controls twice and only on instance is set.

Is it possible to disable automatic generation of member variables for ascx?

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!