473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Inheritance Issue Custom Page Class

Tim
have a 1.1 framework site that is being converted to 2.0.

I have a custom class MyPage that I'm trying to have all of my .Net
pages inherit.
My site uses both classic and .Net sessions so I am using the
MSDN.SessionPage to handle the sessions.
My custom page class looks like this:
Public Class MyPage
Inherits MSDN.SessionPage
End Class
And my pages inherit MyPage.
Partial Class TestSession
Inherits MyPage
...
End Class
When I go to build my website, I get an InitializeCulture is not a
member of xxxx.aspx
This worked absolutely fine in the 1.1 framework.
However, if I don't inherit MyPage and just directly inherit
MSDN.SessionPage, everything works fine. The thing is, I have a bunch
of other items in MyPage that I would like to add such as error
handling. If I have MyPage inherit System.Web.UI.Page, it builds fine
but I can't access my sessions.
Does anyone know why it would work in 1.1 but not 2.0 or why in 2.0
if
I directly inherit the MSDN.SessionPage it works but if I put a
custom
page class in, it does not?
Thanks,
Tim

Oct 23 '07 #1
0 1223

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at...
0
by: Bita-kookoo | last post by:
I am having a problem with inheritance for my web solution. Here are the steps I took for a project within C#: -I first created a new class, descended from System.Web.UI.Page. For this...
45
by: Ben Blank | last post by:
I'm writing a family of classes which all inherit most of their methods and code (including constructors) from a single base class. When attempting to instance one of the derived classes using...
5
by: Invalidlastname | last post by:
Hi, I just read the pattern "Design and Implementation Guidelines for Web Clients" from MSDN. Here is my question. In chapter 3,...
2
by: JR | last post by:
I'm developing in VS.NET 2002 and I'm having trouble working around the issue with page inheritance and the VS.NET Form Designer. When I create a base class for my form, and inherit from it, I...
2
by: Emmanuel | last post by:
Hi, I'm working on a c# web app and require having some code which runs in the page Load event of each page and to be reusable in other web apps. So i decided to use a Class Library which...
2
by: Jason MacKenzie | last post by:
I have a higher level question about inheritance. We have a base class that all our intranet pages inherit that does things like our navigation menu, security etc. That works great is amazingly...
4
by: Joe | last post by:
We are working on a project that requires 3rd parties (ie, consultants) to use our ASP.net webforms in a very reusable manner. The big catch is that we are not allowed to give them source. There...
0
by: tim.cavins | last post by:
I have a 1.1 framework site that is being converted to 2.0. I have a custom class MyPage that I'm trying to have all of my .Net pages inherit. My site uses both classic and .Net sessions so I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.