473,396 Members | 1,916 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.

Designer Support when Inheriting from a Base Page Class

Hi all,

I wanted to put some common security functions into a class that inherits
from the Page class and then use the new class as the basis for all my pages.

Unfortunately, if I try and inherit from my new SecurePage class and not
the old Page class, the designer breaks and will only allow me into html
mode. Bugger.

The error message given is:

* The designer could not be shown for this file because none of the classes
within it can be designed. The designer inspected the following classes
in the file:
* Login --- The base class 'ChaosTracker.UI.SecurePage' could not be loaded.

I know its possible to carry on without designer support but I can't really
be bothered with that carry on.

Does anyone know if its possible to get designer support back when inheriting
from custom base page classes

Thanks all

Kindest Regards

tce

Jul 22 '05 #1
3 2642
Strange. All my pages derive from custom page classes, and I have no
problem bringing them up in the Designer. (now, getting them back
intact from the "Smart" auto-mangle is another matter!)

So yeah, it should be possible. Stupid question, but have you compiled
this new class yet? Referenced the project from which it comes?
Re-installed your OS from scratch, Re-installed VS.NET, and Re-built
the project from the ground up? Sometimes, that's the only way to get
things to work!

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Jul 22 '05 #2
Any chance your base class is marked as abstract (aka MustInherit)?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 09 Jul 2005 10:06:46 -0700, thechaosengine <na> wrote:
Hi all,

I wanted to put some common security functions into a class that inherits
from the Page class and then use the new class as the basis for all my pages.

Unfortunately, if I try and inherit from my new SecurePage class and not
the old Page class, the designer breaks and will only allow me into html
mode. Bugger.

The error message given is:

* The designer could not be shown for this file because none of the classes
within it can be designed. The designer inspected the following classes
in the file:
* Login --- The base class 'ChaosTracker.UI.SecurePage' could not be loaded.

I know its possible to carry on without designer support but I can't really
be bothered with that carry on.

Does anyone know if its possible to get designer support back when inheriting
from custom base page classes

Thanks all

Kindest Regards

tce


Jul 22 '05 #3

--
John@Work
"Scott Allen" wrote:
Any chance your base class is marked as abstract (aka MustInherit)?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 09 Jul 2005 10:06:46 -0700, thechaosengine <na> wrote:
Hi all,

I wanted to put some common security functions into a class that inherits
from the Page class and then use the new class as the basis for all my pages.

Unfortunately, if I try and inherit from my new SecurePage class and not
the old Page class, the designer breaks and will only allow me into html
mode. Bugger.

The error message given is:

* The designer could not be shown for this file because none of the classes
within it can be designed. The designer inspected the following classes
in the file:
* Login --- The base class 'ChaosTracker.UI.SecurePage' could not be loaded.

I know its possible to carry on without designer support but I can't really
be bothered with that carry on.

Does anyone know if its possible to get designer support back when inheriting
from custom base page classes

Thanks all

Kindest Regards

tce


I am having the same problem. I am working on a dotNetNuke project. If I inherit from a class that I create, everything compiles and runs fine, but I cannot open the user control in web forms designer anymore.


Here is the user control (child) class statement:

Public MustInherit Class EventManagementListingEdit
Inherits eventManagementListingBase

Here is the base class (parent) class statement:

Public Class eventManagementListingBase
Inherits Entities.Modules.PortalModuleBase

Aug 24 '05 #4

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

Similar topics

11
by: Noah Coad [MVP .NET/C#] | last post by:
How do you make a member of a class mandatory to override with a _new_ definition? For example, when inheriting from System.Collections.CollectionBase, you are required to implement certain...
1
by: S Guiboud | last post by:
I want to subclass the System.Web.UI.UserControl to make a common control for my site. Then, when I create a new UserControl from the Visual Studio I changed the base class...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
1
by: Carlo Marchesoni | last post by:
Some days ago I asked this forum whether it is possible to set up the <title> from the code-behind. A couple of poeple helped me and in fact it is quite ease: a) change the HTML, e.g.: <title...
3
by: thechaosengine | last post by:
Hi all, I wanted to put some common security functions into a class that inherits from the Page class and then use the new class as the basis for all my pages. Unfortunately, if I try and...
4
by: Slimeman | last post by:
When I create a BasePage class in either the same or separate assembly, create a Web Form that inherits from BasePage, and then attempt to view my Web Form in the visual designer, I get the...
1
by: dusanv | last post by:
Hi, I have a class (say O1) that overrides System::Windows::Forms::UserControl and then another one that overrides O1 (call it O2). O2 used to work with the Designer as it was inheriting...
4
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
9
by: TS | last post by:
how do i regenerate the designer file, mine got out of sync and i deleted it - thought it would create new one. thanks
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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...
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.