G
Guest
On a web site that I am working on I have created a base page called
public abstract class WebsiteBasePage : System.Web.UI.Page
{
.....
}
The reason for this is to put standard code in it, for example retrieving
application settings from web.config, but each time I try to open a decendant
page
public class Default : WebsiteBasePage
{
....
}
I get the following error when I open the page up to design the HTML side of
things:
---------------------------
Microsoft Development Environment
---------------------------
The file could not be loaded into the Web Forms designer. Please correct the
following error and then try loading it again:
Type Abstract
Make sure all of the classes used in the page are built or referenced in the
project. Click Help for more information.
---------------------------
OK Help
---------------------------
The base class WebsiteBasePage is in the same namespace as default.aspx.
This is the page inheritence tag in the aspx file.
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false"
Inherits="StandardSnowdropORS.Default" %>
TIA
Graham Harris
public abstract class WebsiteBasePage : System.Web.UI.Page
{
.....
}
The reason for this is to put standard code in it, for example retrieving
application settings from web.config, but each time I try to open a decendant
page
public class Default : WebsiteBasePage
{
....
}
I get the following error when I open the page up to design the HTML side of
things:
---------------------------
Microsoft Development Environment
---------------------------
The file could not be loaded into the Web Forms designer. Please correct the
following error and then try loading it again:
Type Abstract
Make sure all of the classes used in the page are built or referenced in the
project. Click Help for more information.
---------------------------
OK Help
---------------------------
The base class WebsiteBasePage is in the same namespace as default.aspx.
This is the page inheritence tag in the aspx file.
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false"
Inherits="StandardSnowdropORS.Default" %>
TIA
Graham Harris