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

How access other project classes

Hi experts!

I have two projects ...

so First project cs code like this,

using System;
using System.Collections;
using System.Configuration;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
using System.Xml.XPath;
using System.Xml.Xsl;
using System.IO;
using GotDotNet.XInclude;
using com.kikudjiro;
using EwaoListingCommon;

namespace Cititown
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class Compose : CommonPage
{
protected System.Web.UI.HtmlControls.HtmlInputHidden hAction;
protected System.Web.UI.HtmlControls.HtmlInputHidden hPage;
protected System.Web.UI.HtmlControls.HtmlInputHidden hPagesCount;
protected System.Web.UI.HtmlControls.HtmlInputHidden hOrderField;
protected System.Web.UI.HtmlControls.HtmlInputHidden hOrderDir;
protected System.Web.UI.HtmlControls.HtmlInputHidden hCatID;
protected System.Web.UI.HtmlControls.HtmlInputHidden hSubCatID;
protected System.Web.UI.HtmlControls.HtmlInputHidden hListerID;
protected System.Web.UI.HtmlControls.HtmlInputHidden hType;
protected System.Web.UI.HtmlControls.HtmlInputHidden hPostingID;

private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
bool bCantSaveAttachment = false;
bool bNoSpace = false;
}
]
}

Second project code like this,

using System;
using System.Collections;
using System.Configuration;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
using System.Xml.XPath;
using System.Xml.Xsl;
using System.IO;
using GotDotNet.XInclude;
using com.kikudjiro;
using EwaoListingCommon;

namespace Cititown.myemails
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class ListingComposeGraphic : XmlPage
{
protected System.Web.UI.HtmlControls.HtmlInputHidden hAction;
protected System.Web.UI.HtmlControls.HtmlInputHidden hPage;
protected System.Web.UI.HtmlControls.HtmlInputHidden hPagesCount;
protected System.Web.UI.HtmlControls.HtmlInputHidden hOrderField;
protected System.Web.UI.HtmlControls.HtmlInputHidden hOrderDir;
protected System.Web.UI.HtmlControls.HtmlInputHidden hCatID;
protected System.Web.UI.HtmlControls.HtmlInputHidden hSubCatID;
protected System.Web.UI.HtmlControls.HtmlInputHidden hListerID;
protected System.Web.UI.HtmlControls.HtmlInputHidden hType;
protected System.Web.UI.HtmlControls.HtmlInputHidden hPostingID;

private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
bool bCantSaveAttachment = false;
bool bNoSpace = false;
}
}
}

If I am using like this

using System;
using System.Collections;
using System.Configuration;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
using System.Xml.XPath;
using System.Xml.Xsl;
using System.IO;
using GotDotNet.XInclude;
using com.kikudjiro;
using EwaoListingCommon;

namespace Cititown.myemails
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class ListingComposeGraphic : XmlPage , CommonPage ( I add
here! )
{
protected System.Web.UI.HtmlControls.HtmlInputHidden hAction;
protected System.Web.UI.HtmlControls.HtmlInputHidden hPage;
protected System.Web.UI.HtmlControls.HtmlInputHidden hPagesCount;
protected System.Web.UI.HtmlControls.HtmlInputHidden hOrderField;
protected System.Web.UI.HtmlControls.HtmlInputHidden hOrderDir;
protected System.Web.UI.HtmlControls.HtmlInputHidden hCatID;
protected System.Web.UI.HtmlControls.HtmlInputHidden hSubCatID;
protected System.Web.UI.HtmlControls.HtmlInputHidden hListerID;
protected System.Web.UI.HtmlControls.HtmlInputHidden hType;
protected System.Web.UI.HtmlControls.HtmlInputHidden hPostingID;

private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
bool bCantSaveAttachment = false;
bool bNoSpace = false;
}
}
}
I got error message pls help me soon

Nov 23 '06 #1
11 1565
Dnia 23 Nov 2006 03:47:13 -0800, Sala napisał(a):
I got error message
Very expressive :)

--
SirMike - http://www.sirmike.org

C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg. - Bjarne Stroustrup
Nov 23 '06 #2
Pls anyone tell me ... Pls read this msg fully and reply me soon

On Nov 23, 4:50 pm, SirMike <sirm...@FUCKSPAMMERSpoczta.onet.pl>
wrote:
Dnia 23 Nov 2006 03:47:13 -0800, Sala napisał(a):
I got error messageVery expressive :)

--
SirMike -http://www.sirmike.org

C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg. - Bjarne Stroustrup
Nov 23 '06 #3
Give the exact error message as the previous poster intimated ;p

Sala wrote:
Pls anyone tell me ... Pls read this msg fully and reply me soon

On Nov 23, 4:50 pm, SirMike <sirm...@FUCKSPAMMERSpoczta.onet.pl>
wrote:
Dnia 23 Nov 2006 03:47:13 -0800, Sala napisał(a):
I got error messageVery expressive :)
--
SirMike -http://www.sirmike.org

C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg. - Bjarne Stroustrup
Nov 23 '06 #4
Unless you actually go to the trouble of telling people what error you get
(exact text), and when (runtime / compile-time), I doubt many people are
going to bother trying to infer...

Marc
Nov 23 '06 #5


Hi experts!

I have two projects ...
so First project cs code like this,
===========================
using System;
using EwaoListingCommon;
namespace Cititown
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class Compose : CommonPage
// SEE HERE
{
protected System.Web.UI.HtmlControls.HtmlInputHidden
hPostingID;

private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
}
}
}
Second project code like this,
======================

using System;
using EwaoListingCommon;
namespace Cititown.myemails
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class ListingComposeGraphic : XmlPage
// SEE
HERE
{
protected System.Web.UI.HtmlControls.HtmlInputHidden
hAction;
private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
}
}
}
If I am using like this
==================

using System;
using EwaoListingCommon;
namespace Cititown.myemails
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class ListingComposeGraphic : XmlPage , CommonPage
// SEE HERE
{
protected System.Web.UI.HtmlControls.HtmlInputHidden
hPostingID;
private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
}
}
}
I got error like this is not type of interface

Nov 23 '06 #6
I suspect that you are attempting multiple inheritance, which isn't
supported in C# (or .Net AFAIK); ListingComposeGraphic can inherit from one
or the other, but not both.

But! don't tell us something *like* the error message. Just copy / paste. It
will be less typing, and might actually tell us the problem!!!
</rant>

Marc
Nov 23 '06 #7
I got error msg when am compiling...
Error :
C:\Inetpub\wwwroot\Cititown\ListingComposeGraphic. aspx.cs(26):
'CommonPage' : type in interface list is not an interface

Marc Gravell wrote:
Unless you actually go to the trouble of telling people what error you get
(exact text), and when (runtime / compile-time), I doubt many people are
going to bother trying to infer...

Marc
Nov 23 '06 #8
Hi Sala,

C# doesn't support multiple inheritance for classes.

in the line:
public class ListingComposeGraphic : XmlPage , CommonPage
you try to inherit from 2 classes. That's not posseble.

If CommonPage were an interface, this would be possible. That's why the
compiler says 'this is not type of interface'
"Sala" <sa**********@gmail.comschrieb im Newsbeitrag
news:11**********************@j72g2000cwa.googlegr oups.com...
>

Hi experts!

I have two projects ...
so First project cs code like this,
===========================
using System;
using EwaoListingCommon;
namespace Cititown
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class Compose : CommonPage
// SEE HERE
{
protected System.Web.UI.HtmlControls.HtmlInputHidden
hPostingID;

private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
}
}
}
Second project code like this,
======================

using System;
using EwaoListingCommon;
namespace Cititown.myemails
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class ListingComposeGraphic : XmlPage
// SEE
HERE
{
protected System.Web.UI.HtmlControls.HtmlInputHidden
hAction;
private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
}
}
}
If I am using like this
==================

using System;
using EwaoListingCommon;
namespace Cititown.myemails
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class ListingComposeGraphic : XmlPage , CommonPage
// SEE HERE
{
protected System.Web.UI.HtmlControls.HtmlInputHidden
hPostingID;
private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
}
}
}
I got error like this is not type of interface

Nov 23 '06 #9
Thanks . Ok how i'll access that class in ComposeGraphic ? Pls tell me

On Nov 23, 5:28 pm, "Sala" <salavudee...@gmail.comwrote:
I got error msg when am compiling...
Error :
C:\Inetpub\wwwroot\Cititown\ListingComposeGraphic. aspx.cs(26):
'CommonPage' : type in interface list is not an interface

Marc Gravell wrote:
Unless you actually go to the trouble of telling people what error you get
(exact text), and when (runtime / compile-time), I doubt many people are
going to bother trying to infer...
Marc- Hide quoted text -- Show quoted text -
Nov 23 '06 #10
See other post; you're currently attempting to use multiple inheritance. I
can't answer tell you the correct way of accessing it unless you can clarify
what you are trying to do... it really isn't very clear, sorry.

Marc
Nov 23 '06 #11

Once again thanks!
On Nov 23, 5:41 pm, "Marc Gravell" <marc.grav...@gmail.comwrote:
See other post; you're currently attempting to use multiple inheritance. I
can't answer tell you the correct way of accessing it unless you can clarify
what you are trying to do... it really isn't very clear, sorry.

Marc
Nov 23 '06 #12

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

Similar topics

13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
by: MVM | last post by:
I am creating a form in an Access project, using SQL Server as the backend. The project is linked to two tables, Departments and FixedAssets. The form I am working with is linked to FixedAssets. ...
1
by: damjanu | last post by:
Hi; I have spent some time investigating this issue, and I would like to verify with you my findings. I would greatly appreciate someone experianced saying yes to what I concluded, or no and...
7
by: damjanu | last post by:
Hi All; I need little help. I have a datasheet form. I allow user to do 'filter by selection'. My form contains a column with values. As user changes selections, I want to calculate totals....
6
by: Kenneth Courville | last post by:
Hello, I'm looking for assistance with the Access object model. I know this is VB, but I'm building an Office Add-using C# directed at Access 2002. I'm literate in VB, so you can reply in VB... I...
6
by: user451 | last post by:
As the most Access-savvy person in my office, I have been handed the task of proposing a nationwide expansion of a project that I have developed in Access. A brief overview: Right now, about 25...
11
by: Tim Smallwood | last post by:
Hi, I have an Access project that I use to allow a client to hit an SQL server at my host. This project has several forms that are used to udpate tables, etc, but I'd also like to be able to...
1
by: Jim Devenish | last post by:
I am continuing my exploration about upsizing to SQLServer from Access 2000. I have a split database with a front-end and a back-end, each of which is A2K. I have spent some time in bookshops...
1
by: GAVO-UK | last post by:
Hi - Using Access 2003 I've been creating applications in access for the past few years and gotten pretty good at it, now I would like to move a bit forward and start using ms access project. ...
1
by: aaa | last post by:
Hello, I was wondering if there was a difference between Access .mdb's and Access Project .adp's with respect to the VBA / syntax. I.e. If i were to use a form from an Access database and...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.