[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
Re: [2.0] Need help with inheritance in asp.net
Ideally, you should create a class called Pagebase, not a web page called Pagebase.
Re: [2.0] Need help with inheritance in asp.net
yeah you are right!! Lol :sick:
thanks
Henrik
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. :)
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