473,395 Members | 1,341 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,395 software developers and data experts.

Webform based on abstract class

Hi,

why IDE doesn't render my webform derived from an abstract class which, in
turn, is based on System.Web.UI.Page?
App compiles and works fine except I get a "Type Abstract" error when I try
to open with Web Forms designer.
I can resolve the problem simply cutting off the abstract attribute but I
would like to forbid direct use of the base class.
Any ideas?

Thank,

Miguel.
Nov 18 '05 #1
2 1137
Unfortunately this behavior is "by design". The only way around it is
to remove the abstract keyword. I'm not sure if VS 2005 will address
this or not...

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

On Wed, 23 Jun 2004 09:09:39 +0100, "Miguel Núñez Pereyra"
<mn****@sp.am.mobilesyst.com> wrote:
Hi,

why IDE doesn't render my webform derived from an abstract class which, in
turn, is based on System.Web.UI.Page?
App compiles and works fine except I get a "Type Abstract" error when I try
to open with Web Forms designer.
I can resolve the problem simply cutting off the abstract attribute but I
would like to forbid direct use of the base class.
Any ideas?

Thank,

Miguel.


Nov 18 '05 #2
I just tried this on the May CTP and it appears the designer doesn't
mind an abstract base in the hierarchy now. It did take some wrestling
to get it to work, but part of that was coming to terms with the new
partial class stuff.

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

On Wed, 23 Jun 2004 09:09:39 +0100, "Miguel Núñez Pereyra"
<mn****@sp.am.mobilesyst.com> wrote:
Hi,

why IDE doesn't render my webform derived from an abstract class which, in
turn, is based on System.Web.UI.Page?
App compiles and works fine except I get a "Type Abstract" error when I try
to open with Web Forms designer.
I can resolve the problem simply cutting off the abstract attribute but I
would like to forbid direct use of the base class.
Any ideas?

Thank,

Miguel.


Nov 18 '05 #3

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

Similar topics

2
by: Dave Veeneman | last post by:
Is is legal to declare abstract members in non-abstract classes? How about non-abstract members in abstract classes? I am writing a base class with three derived classes. The base class will...
5
by: Tamir Khason | last post by:
Friends, maybe someone knows good references for .NET plugin based program architecture. E.g I want to be able to "put" class library(dll) in some place (where I do not the name of the class, but...
6
by: Dan Sikorsky | last post by:
If we were to define all abstract methods in an abstract class, thereby making that class non-abstract, and then override the heretofore 'abstract' methods in a derived class, wouldn't that remove...
3
by: Nuno | last post by:
How can I instantiate a webform2 object from webfrom1 codebehind? The class does not popup in intellisense and gives me and error if i try to create it. Nuno
7
by: jason | last post by:
In the microsoft starter kit Time Tracker application, the data access layer code consist of three cs files. DataAccessHelper.cs DataAcess.cs SQLDataAccessLayer.cs DataAcccessHelper appears...
6
by: S. Lorétan | last post by:
Hi guys. I am preparing the rewriting of an huge existing application in VB6. This software is a mess of 10 years of patchs and new functionalities added randomly, and didn't have any logical or...
0
by: emin.shopper | last post by:
I had a need recently to check if my subclasses properly implemented the desired interface and wished that I could use something like an abstract base class in python. After reading up on metaclass...
4
by: David Zha0 | last post by:
Hi, "when we call a virtual method, the runtime will check the instance who called the method and then choose the suitable override method, this may causes the performance drop down", is this...
1
by: Francesco Spegni | last post by:
hi there, i hope this message is not out of topic. i've a question about how to realize a small architecture based on webservice and whose goal is ensure a good level o flexibility of my code. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.