473,321 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,321 software developers and data experts.

The base class includes the field but its type is not compatible with the type of control.

I have been looking for the solution of this problem for several months and
I could not solve.

I will try to post something again :

Facts :

a) I have a custom web control derived from DataGrid. Its fullname is :
MyNameSpace.MyDataGrid.
b) I have a ancestor class called BasePage that is derived from
System.Web.UI.Page. All my web pages inherits from BasePage class.
c) In BasePage class there is field of MyNameSpace.MyDataGrid. Just like
this :

protected MyNameSpace.MyDataGrid datagrid;

d) I have a web page called default.aspx (derived from BasePage class) that
has an instance of MyDataGrid, just like :

<cc1:mydatagrid AutoGeneratoColumns="true" id="datagrid"></cc1:mydatagrid>
(some parameters not shown)

Note that the instance datagrid is already declared in the BasePage class,
so it is not declared on default.aspx.cs. (Default.aspx.cs inherits from
BasePage class).

Everything worked fine for several months, until some problem began to
happen :

Parser Error :
The base class includes the field 'datagrid' but its type
(MyNameSpace.MyDataGrid) is not compatible with the type of control
(MyNameSpace.MyDataGrid).

This error only occurs in random times. The application runs okeys, but in
some moments this error begin to occur in everypage that has an instance of
MyDataGrid. So, we restart the IIS and the application backs to normal. It
runs OK for several days until the this error come back.

We tracked the performance counters of the Web Server and we could not
notice any strange behavior that could lead to that.

I dont know what do anymore.

Any ideas are wellcome.

Thanks in Advance,

Daniel Melo
Nov 18 '05 #1
0 10404

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

Similar topics

3
by: crichmon | last post by:
Any general advice for dealing with circular dependencies? For example, I have a situation which, when simplified, is similar to: ///////////// // A.h class A { public: int x;
3
by: JB | last post by:
My problem: I have an abstract class that implements an Interface: abstract class ReportBase: IReport { ..... Constructor and Code.... } On a user control I try to have it's class derive...
3
by: Mikip | last post by:
Hi, I have some properties that are common to all pages so I have created a base class which every page inherits from. I now also want to use these properties within User Controls on the page....
0
by: Eric | last post by:
I am receiving the following error when trying to access a custom control (dll), actually all of the custom controls I build and add to the project: The base class includes the field 'xxx', but...
2
by: Urs Eichmann | last post by:
Hi using VS 2005 Beta 2, I want to define a base class for any type of entity, e.g. customer, item, order etc. The entity could have a key of type String or Integer, so I define the base class as...
8
by: Brett Romero | last post by:
I have this situation: myEXE <needs< DerivedClass <which needs< BaseClass Meaning, myEXE is using a type defined in DerivedClass, which inherits from BaseClass. I include a reference to...
1
by: John Dalberg | last post by:
Running VS 2005 SP1. I am getting errors on pages which contain custom controls. A typical error looks like this: (This is from a test aspx page which only contains the custom control) Parser...
15
by: Bob Johnson | last post by:
I have a base class that must have a member variable populated by, and only by, derived classes. It appears that if I declare the variable as "internal protected" then the base class *can*...
6
by: Me | last post by:
I need to be able to acces non-virtual members of sublcasses via a base class pointer...and without the need for an explicit type cast. I thought a pure virtual getPtr() that acts as a type cast...
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...

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.