This is a limitation in VS 2003, WebsiteBasePage must have the
"abstract" keyword applied on the class or on a method. If you want to
use the designer you'll have to make the class concrete, i.e.
non-abstract, i.e. provide a default implementation for all of the
class members.
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sun, 21 Aug 2005 00:34:01 -0700, "bmsgharr"
<> wrote:
>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