Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2005

Tip: Looking for answers? Try searching our database.

Designer Support when Inheriting from a Base Page Class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
thechaosengine - 09 Jul 2005 18:06 GMT
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
jasonkester - 09 Jul 2005 23:59 GMT
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/
Scott Allen - 10 Jul 2005 05:58 GMT
Any chance your base class is marked as abstract (aka MustInherit)?

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

>Hi all,
>
[quoted text clipped - 23 lines]
>
>tce
JohnAtWork - 24 Aug 2005 13:28 GMT
Signature

John@Work

> Any chance your base class is marked as abstract (aka MustInherit)?
>
[quoted text clipped - 31 lines]
>
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.