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

.NET Classes and Different Domains

I have written an account/cart/search facility at redburg.co.uk and
now I need to implement it elsewhere, eg at safavid.co.uk.

The closest parallel solution I can think of is a Java Package which
has several classes and can be accessed via a routine. Similarly I
would like to bundle the c# code (eg cart etc) into a class
(namespace) and then deploy that but allow access from some control
routines from new domains.

I need therefore to implement the classes and domains so that they can
be usuable across different domains. I tried just copying the code
into a new class but it failed on the codebehind. I would like any
help on this.

I have a working solution but just copying the whole project.
Obviously this is not very desirable as it means muliple copies of
source code.

The db design (MS SQL) and XML interfaces allow any catalog to be
built and therefore only different input data is needed. This is
obtained via data entry. But some minor changes are needed (eg
headings), they are very minor and appear in the HTML or customising
the data conversion (data load) since the input data is not formatted
the same from different sources.
Nov 18 '05 #1
2 997
Hi,

If you looking for mechanism such as java Naming services ... there
isn't equivalent in .Net.
but if your solution packed in library you can sigh that library,
deploy it to GAC and load it from any application (app domain) in your
machine.

if you need to share library over machines you need to implement code
that should support naming services. contact me directly so I can guide
you.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

Thanks for this suggestion.

I do not want to mirror a Java solution, I only gave that as an example.

I was only introduced this year to ASP.NET and C# so I dont know a lot.

I am not a Java expert, my own background is a generalist and I have
worked with a wide range of technologies.

The basic problem I have is grouping classes in ASP.Net and when I tried
changing Namespaces I got a lot of codebehind problems. Since I am not
in control of IIS, I dont know if these are IIS related or code related.

Basically I have core functions which can work with all domains, and
then some interfacing which is unique.

eg

namespace Accounts
{
// defines all methods for accounts, eg ordering, cart, billing
public class Cart: System.Web.UI.Page
{
// handles cart options, eg add/del etc

name Safavid
{
// local application uses all methods of Cart
Accounts.Cart thisCart = new Accounts.Cart();
// read basket
thisCart.AddPart(PartNumber.Text);

I want to do something like this, so all methods of Cart are used in a
DLL.

When I tried this I got codebehind errors.

So in the end I just copied the source code compiled and deployed the
whole project.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

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

Similar topics

1
by: WeAreGoing! | last post by:
Hello. I need to transfer an MD5 digest number between two pages on different domains. I know this is generally not possible, but I have full access on one domain and can insert Javascript at...
2
by: Astra | last post by:
Hi All Probably way off the mark here, but I have IIS running on my WinXP machine and I thought I could host multiple domains over the old Win98 method where I could only have the one? All I...
1
by: barbaraJacob | last post by:
Hi everyone! Must deliver my project tomorrow....It's nearly finished. I've set up a website to be published in 3 different domains. - same webserver (I mean physically the same machine) -...
7
by: Doug | last post by:
An ASP.NET session cookie set on "www.mydomain.com" can not be accessed on "search.mydomain.com"; hence, a new session and cookie are being created on every sub-domain. This is occuring because...
2
by: Josef Meierhofer | last post by:
Hi everybody, there are several SQL-Server 2000 databases within a company located on different servers in different domains. On every database you can find the same table X. I want to merge...
1
by: timmmahh | last post by:
I want to use the new encryption capabilities in .NET 2.0 remoting (e.g using the secure attribute). I've got my demo to work on a single and multiple server deployment in the same domain, but...
7
by: ademirzanetti | last post by:
Hi there !!! I would like to listen your opinions about inherit from a STL class like list. For example, do you think it is a good approach if I inherit from list to create something like...
3
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
4
by: Jon F | last post by:
Hi everybody, I have a plain good ol' HTML website that currently hosts several localized versions of pages. That is, depending on the address/domain that users enter into their browser, the...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: 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
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.