Web form designer in VS 2003 .Net does not know about base classcontrols

E

Edward Diener

I have a base class derived from System.Web.UI.Page, and derived classes
derived from the base class. The base class has protected HTML hidden
fields in it, and the derived class's aspx page has these hidden fields
specified. So far everything is OK.

However if I open the derived class's aspx page in the Web Form
designer, it immediately puts an asterisk on the tab, meaning some
change needs saving without my having done anything. If I then close the
aspx page and agree to save the changes, it adds the HTML hidden fields
to my derived class, not only overlaying the base class's hidden fields
with the same name for the hidden field HTML controls in the derived
class, but also the run-time initialization of controls in my
derived-base class gets royally messed up.

If I do not agree to save the changes I can not make any visual changes
to the controls in my derived class's aspx page.

Has anyone seen this broken behavior ? Does anyone know of a way around
this broken behavior so that the Web Form designer does not break the
web application code ?

Yes, I can manually make changes to my derived class's web form, and the
appropriate class itself, but the whole idea is to use the Web Form
designer to make those changes. Also if I manually make changes will the
IDE regenerate the correct .resx file automatically ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top