473,321 Members | 1,708 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,321 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 2636
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.