|
-
May 7th, 2007, 02:51 AM
#1
Thread Starter
Frenzied Member
[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
-
May 7th, 2007, 05:40 AM
#2
Re: [2.0] Need help with inheritance in asp.net
Ideally, you should create a class called Pagebase, not a web page called Pagebase.
-
May 7th, 2007, 05:43 AM
#3
Thread Starter
Frenzied Member
Re: [2.0] Need help with inheritance in asp.net
yeah you are right!! Lol
thanks
Henrik
-
May 7th, 2007, 05:46 AM
#4
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.
-
May 7th, 2007, 05:48 AM
#5
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|