Results 1 to 5 of 5

Thread: [RESOLVED] [2.0] Need help with inheritance in asp.net

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    Resolved [RESOLVED] [2.0] Need help with inheritance in asp.net

    Hi!

    I have programmed vb.net for a few years now, and recently started with c#.

    I have a web page "MyFirstPage" which has a masterpage "MyMasterpage". I also added a new web form called "Pagebase.aspx" where I will have error handling and some other stuff.

    I could add error handling in the master page, but not all pages in teh project will use the masterpage.

    Now I tried to inherit using the following code:

    public partial class MyFirstPage : PageBase

    But it refuses to work. I have checked namespaces and anything i can think of. Clearly Im doing something wrong because the intellisense wont find the PageBase class. The two files are located in the same web project...

    I had no problem with this in vb.net... hmmmm whats the problem?

    kind regards
    Henrik

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2.0] Need help with inheritance in asp.net

    Ideally, you should create a class called Pagebase, not a web page called Pagebase.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    Re: [2.0] Need help with inheritance in asp.net

    yeah you are right!! Lol

    thanks
    Henrik

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] [2.0] Need help with inheritance in asp.net

    Hehe... no prob.

    Btw, there's an ASP.NET forum for ASP.NET questions.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    Re: [RESOLVED] [2.0] Need help with inheritance in asp.net

    Yeh I know, I figured this was related to C# only, thats why I posted here. Normally this is a vb forum... So I didn't wanna ask C# question there...

    cheers!
    Henrik

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width