473,770 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page Inheritance Issue

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 am using the
MSDN.SessionPag e to handle the sessions.

My custom page class looks like this:

Public Class MyPage
Inherits MSDN.SessionPag e
End Class

And my pages inherit MyPage.

Partial Class TestSession
Inherits MyPage
...
End Class

When I go to build my website, I get an InitializeCultu re 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.SessionPag e, 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.P age, 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.SessionPag e it works but if I put a custom
page class in, it does not?

Thanks,

Tim

Oct 23 '07 #1
0 898

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

Similar topics

1
1776
by: BK | last post by:
I am writing a tiered inheritance structure in ASP.NET and would like opinions on the best way to accomplish the correct inheritance dynamically. The page structure is going to look similar to the following: System...Page | MyBasePage |------------------|--------------------| CategoryPageOne CategoryPageTwo CategoryPageThree | | |
1
1975
by: nLella | last post by:
Hello, I am trying to implement page templates in my web application. I am using frame work 1.1. Can you suggest me, if I have to go with Master pages(dll developed by asp.net team) or use page inheritance instead? any help will be appretiated. Thanks
0
1395
by: gh0st54 | last post by:
An update on my original message seens like virtual directory doesn't like page inheritance I have taken my form in my Secure folder and made a duplicate in the main site, it works fine from the main site but in the virtual directory I get that error message : 'CS0234: The type or namespace name 'PageBase' does not exist in the class or namespace '<namespace>' (are you missing an assembly reference?)'
1
1433
by: George Durzi | last post by:
I'm converting a c# web application to support page inheritance so that I can really change the look and feel of my application by only modifying the ..cs that my pages inherit from. The only recurring problem I'm having is that none of my HtmlInputFile controls are working after the conversion. The page inheritance setup is pure vanilla, copied from some examples on the web. All the fron end stuff is inside a form tag, etc.. But when...
5
2050
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, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/diforwc-ch03.asp , the article mentions using page inheritance to maintain common page layout. We currently use page inheritance approach to segment the function areas. In each function area, there is a base page to provide the common...
2
1142
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 can no longer bring up the inherited form in the designer. I get the error "The file failed to load in the Web form designer. please correct the following error, then load it again : Type Abstract" Apparently, others have experienced this problem...
1
1033
by: Craig Street | last post by:
Hi How do i create a base page in ASP.NET 2.0? I don't want to use master pages as I don't need any visual inheritance. You could do this simply in ASP.NET 1.1 by creating a base page that inherted form System.Web.UI.Page and the ensuring that all of your pages inherited from your own base pages. With the advent of partial classes this seems somewhat more difficult.
2
871
by: Jon | last post by:
I have made the following class and want all my pages to inherit from it instead of system.web.ui.page. this works fine, except that now in the designer none of the controls have names and I get an error "Type Abstract" when I do switch to designer mode... I can't use windows forms auth because we use frames and iframes on the site, and each of them gets redirected to the login page, instead of just the central content frame. If there's a...
4
1101
by: samuelberthelot | last post by:
Hi, I've got the following css. It works fine with Firefox, but with IE 5, the A is not inherited from li.flagtopic. How come ? #divCutFlags li { float: left; margin-right: 2px;
0
9617
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10037
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8931
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.