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

Shared Components

Hi All,

Has anyone got any advice about how to share code in an Intranet
environment?

In classic ASP, we had include files with functions, connections etc in - We
now need to do similar in asp.net, sharing class libraries, so they are
available to all applications on our intranet.

Regards,
Simon.
Nov 18 '05 #1
3 1264
Right click on you Solution node in Solution Explorer. Select Add/New
Project... In dialog, click Class Library in Templates window, name this new
project, click Browse to save it somewhere on network. This will create a
new proj resulting in a single dll when you build it. Create your classes
there. Build it. Then in any other project, including asp.net, right click
References node, then Add Reference... In dialog, click Projects tab,
doubleclick that new project and OK. Now in C# you simply type "using
Whatever.MyNewInterface;" and use its classes.

Sorry for such details :)
Kikoz.
"Simon Harris" <to***********@makes-you-fat.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi All,

Has anyone got any advice about how to share code in an Intranet
environment?

In classic ASP, we had include files with functions, connections etc in -
We now need to do similar in asp.net, sharing class libraries, so they are
available to all applications on our intranet.

Regards,
Simon.

Nov 18 '05 #2
Thanks Kikoz - Would that method mean that newly added code to the DLL would
be available in all the apps with references to it, or would I have to set
the reference again each time it gets updated/changed?

Cheers,
Simon.

"Kikoz" <ki***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Right click on you Solution node in Solution Explorer. Select Add/New
Project... In dialog, click Class Library in Templates window, name this
new project, click Browse to save it somewhere on network. This will
create a new proj resulting in a single dll when you build it. Create your
classes there. Build it. Then in any other project, including asp.net,
right click References node, then Add Reference... In dialog, click
Projects tab, doubleclick that new project and OK. Now in C# you simply
type "using Whatever.MyNewInterface;" and use its classes.

Sorry for such details :)
Kikoz.
"Simon Harris" <to***********@makes-you-fat.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi All,

Has anyone got any advice about how to share code in an Intranet
environment?

In classic ASP, we had include files with functions, connections etc in -
We now need to do similar in asp.net, sharing class libraries, so they
are available to all applications on our intranet.

Regards,
Simon.


Nov 18 '05 #3
The whole idea of this is to add a reference to some library once and forget
about it. Beware though that if you use SourceSafe and stuff, first, you'd
need to add new proj to source control app, second, you may need to
right-click on that new project and select Get Latest Version everytime
someone else changed its sorce. For example, if something doesn't want to
build itself throwing errors like "There is no such type, blah blah..." then
there is a good chance that you need to get the latest version.

Regards
"Simon Harris" <to***********@makes-you-fat.com> wrote in message
news:eH**************@TK2MSFTNGP12.phx.gbl...
Thanks Kikoz - Would that method mean that newly added code to the DLL
would be available in all the apps with references to it, or would I have
to set the reference again each time it gets updated/changed?

Cheers,
Simon.

"Kikoz" <ki***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Right click on you Solution node in Solution Explorer. Select Add/New
Project... In dialog, click Class Library in Templates window, name this
new project, click Browse to save it somewhere on network. This will
create a new proj resulting in a single dll when you build it. Create
your classes there. Build it. Then in any other project, including
asp.net, right click References node, then Add Reference... In dialog,
click Projects tab, doubleclick that new project and OK. Now in C# you
simply type "using Whatever.MyNewInterface;" and use its classes.

Sorry for such details :)
Kikoz.
"Simon Harris" <to***********@makes-you-fat.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi All,

Has anyone got any advice about how to share code in an Intranet
environment?

In classic ASP, we had include files with functions, connections etc
in - We now need to do similar in asp.net, sharing class libraries, so
they are available to all applications on our intranet.

Regards,
Simon.



Nov 18 '05 #4

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

Similar topics

12
by: Jeremy | last post by:
Hi all, I'm getting very confused about how DB2 uses shared memory and I wonder if someone could clarify matters for me, please ? We are running 32bit DB2 V7.2 FP9 under AIX 4.3.3 on a machine...
96
by: BadPony | last post by:
Anyone using Peoplesoft on a Federated UDB (shared nothing)Environment on Open System Platforms? Preferably AIX, but any war stories would be good. TEA EB-C
0
by: Shiraz | last post by:
Hi I have a question regarding the functionality of merge modules. Since this relates to my previous queries, I'll just give you a brief background on the topic. I had to make an installer for...
9
by: Invalidlastname | last post by:
Hi, We developed some assemblies which use EnterpriseServices queued components. In order to use EnterpriseServices, these assemblies need to be installed into GAC. I used the pre-build and...
7
by: Steve | last post by:
Hi, We have an application framework library that gets statically linked to any applications we produce. (Windows apps, but I don't think that matters here). The framework is based heavily on...
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: 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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: 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...

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.