By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,665 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,665 IT Pros & Developers. It's quick & easy.

Inheritance Issue Custom Page Class

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.