
Subclassing System.Web.UI.Page
I have created an abstract class mntAbstract that handles my db connection
and has the code for a simple DataGrid implementation that is the same for a
simple DG. I added a variable to the Abstract class to hold the DataGrid.
protected System.Web.UI.WebControls.DataGrid dgData;
But when I subclass and go to Design view, then it adds the variable to my
subclass.
protected System.Web.UI.WebControls.DataGrid dgData;
How can I get the VisualStudio designer to recognize the variable at the
superclass and not insert the var at the superclass.
I do not want to rely on the developer remembering to delete the decleration
each time he simple views the page in design mode.
thanks