web form inherits from item that no longer exists?

Discussion in 'ASP .Net' started by Googler, May 11, 2004.

  1. Googler

    Googler Guest

    How can this inherit from a webform that is no longer in the project? There
    USED to be a form called "default2", but it exists no longer. Why is my
    current page "default.aspx" still inheriting from "default2" (which should
    be "default")?

    If I change it to "default" I get an error "Could not load type
    'codelib.default'."

    The project works, but it would be nice to clean this up.

    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb"
    Inherits="codelib.default2"%>


    thanks
     
    Googler, May 11, 2004
    #1
    1. Advertising

  2. Googler

    Matt Berther Guest

    I'm guessing that default.aspx.vb defines codelib.default2. If you want
    to clean this up, change the Inherits="codelib.default2" line, in
    addition to renaming the class in default.aspx.vb.

    --
    Matt Berther
    http://www.mattberther.com

    Googler wrote:
    > How can this inherit from a webform that is no longer in the project? There
    > USED to be a form called "default2", but it exists no longer. Why is my
    > current page "default.aspx" still inheriting from "default2" (which should
    > be "default")?
    >
    > If I change it to "default" I get an error "Could not load type
    > 'codelib.default'."
    >
    > The project works, but it would be nice to clean this up.
    >
    > <%@ Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb"
    > Inherits="codelib.default2"%>
    >
    >
    > thanks
    >
    >
     
    Matt Berther, May 11, 2004
    #2
    1. Advertising

  3. Googler

    Googler Guest

    thanks.

    "Matt Berther" <> wrote in message
    news:#...
    > I'm guessing that default.aspx.vb defines codelib.default2. If you want
    > to clean this up, change the Inherits="codelib.default2" line, in
    > addition to renaming the class in default.aspx.vb.
    >
    > --
    > Matt Berther
    > http://www.mattberther.com
    >
    > Googler wrote:
    > > How can this inherit from a webform that is no longer in the project?

    There
    > > USED to be a form called "default2", but it exists no longer. Why is my
    > > current page "default.aspx" still inheriting from "default2" (which

    should
    > > be "default")?
    > >
    > > If I change it to "default" I get an error "Could not load type
    > > 'codelib.default'."
    > >
    > > The project works, but it would be nice to clean this up.
    > >
    > > <%@ Page Language="vb" AutoEventWireup="false"

    Codebehind="default.aspx.vb"
    > > Inherits="codelib.default2"%>
    > >
    > >
    > > thanks
    > >
    > >
     
    Googler, May 11, 2004
    #3
    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. Alex Nitulescu
    Replies:
    0
    Views:
    352
    Alex Nitulescu
    Feb 22, 2005
  2. Totan
    Replies:
    0
    Views:
    967
    Totan
    Apr 17, 2006
  3. Ulf Meinhardt
    Replies:
    8
    Views:
    6,159
  4. Jack Bates
    Replies:
    2
    Views:
    239
    Gregory Ewing
    Apr 28, 2011
  5. ton
    Replies:
    1
    Views:
    1,028
    Teemu Keiski
    Jun 24, 2007
Loading...

Share This Page