Error trying to use VS form designer with inherited code behind class

Discussion in 'ASP .Net' started by AP, Aug 26, 2003.

  1. AP

    AP Guest

    Hi,

    I am trying to inherit from a base class and use that as my code behind
    class for various forms that have common functionality. The problem is that
    when I try to view the form in the form designer that I get an error: "[Base
    class name here] could not be loaded."

    Why am I getting this error?

    Adam
    AP, Aug 26, 2003
    #1
    1. Advertising

  2. AP

    AP Guest

    Yes it inherits from System.Web.UI.Page.




    "Marina" <> wrote in message
    news:%23Y$Adx$...
    > Does you base class inherit from the Page class? If not, you are out of
    > luck. It must inherit from Page, or have Page as the base class somewhere

    up
    > the inheritance hierarchy if you have multiple inheritance levels.
    >
    > "AP" <> wrote in message
    > news:uuTQdu$...
    > > Hi,
    > >
    > > I am trying to inherit from a base class and use that as my code behind
    > > class for various forms that have common functionality. The problem is

    > that
    > > when I try to view the form in the form designer that I get an error:

    > "[Base
    > > class name here] could not be loaded."
    > >
    > > Why am I getting this error?
    > >
    > > Adam
    > >
    > >

    >
    >
    AP, Aug 26, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben Miller [msft]

    Re: Code Behind vs. no code behind: error

    Ben Miller [msft], Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    583
    Alphonse Giambrone
    Jun 28, 2003
  2. Eric Biggs

    vs designer and code-behind inheritence

    Eric Biggs, Apr 14, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    312
    Eric Biggs
    Apr 14, 2004
  3. Luminousc
    Replies:
    4
    Views:
    557
  4. John

    Non-code behind to code behind

    John, Feb 19, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    482
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 19, 2007
  5. 7stud --
    Replies:
    11
    Views:
    407
    7stud --
    Nov 9, 2007
Loading...

Share This Page