473,803 Members | 3,943 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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 1011
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.P age
{
// 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.AddPar t(PartNumber.Te xt);

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
3914
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 will into tha pages of the other. I'd like to be able to store the number into a cookie for retrieval by either set of pages. I've been racking my brains for a couple of days on this one and just can't come up with the answer. Thanks in...
2
1384
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 can see at the moment is that I have a Default Web Site, which is associated to MyPC, and all I can create is virtual directories/folders within this default location. This means that instead of me being able to create the desired effect of:
1
1361
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) - same .mdb - must display data on a page published on 3 different domains, with different look and feel - I use a dsn-less connection
7
7777
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 ASP.NET always sets the Session cookie domain to the full domain (e.g. "www.mydomain.com") instead of the parent domain (e.g. "mydomain.com") The problem with this is when the visitor goes to a different sub-domain (e.g. "search.mydomain.com"),...
2
4502
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 these tables X (UNION query) and print the result with a Crystal Report. Unfortunately I only have little knowledge on security, domains,
1
1487
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 will this also work across different domains or workgroups? I've not looked into the authenticate issues thus far, so would appreciate it if someone could let me know! Thanks in advance
7
3133
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 "myList" as in the example below ? #include "Sector.h" using namespace boost;
3
6638
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 installed on the server I want to debug, the remote debugger tools from the VS 2005 CD. I just install the windows application. I tried from there to debug, without succes. I could connect to the remote machine only when the msvsmon.exe is in the...
4
1414
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 respective page is being shown in the underlying language, such as www.site.com -english or www.site.fr -> french. In the new ASP.Net application, all pages' textual content (text + tags) comes from a SQL Server database. While I could create one...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10295
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.