Subclassing System.Web.UI.Page 
Author Message
 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



Sat, 28 May 2005 01:54:22 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. System.Web.UI.Page

2. Adding Web Controls to the System.Web.UI.WebControls namespace

3. Layout of Custom System.Web.UI.UserControl Objects added to parent

4. can't find namespace using System.Web.UI.Design

5. Q: SelectedIndexChanged event for System.Web.UI.WebControls.DropDownList

6. System.Web.UI.WebControls.FontInfo

7. I can not find System.Web.UI.WebControls

8. System.Web and web related questions

9. Web Application UI Template

10. Microsoft.Web.UI.WebControls.{MultiPage, TabStrip}

11. Creating a Web UI

12. Microsoft.Web.UI.WebControls

 

 
Powered by phpBB® Forum Software