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

Home Posts Topics Members FAQ

use/reuse of intranet business dlls by asp.net apps

We want to use allready written C sharp programs for our asp.net
applications. The idea is that we write a program ONCE and use this same
EXACT logic for our internet apps. Everything will run on the same server but
we will have two types of clients 1. web based, 2. intranet based. Is this
possible? If so, what is it called in Microsoft speak? How to links would be
appreciated.
--
cheers,
nuutuudnet
Sep 10 '07 #1
9 1478
On Sep 10, 2:20 pm, nuutuudnet <fakeem...@here .dewrote:
We want to use allready written C sharp programs for our asp.net
applications. The idea is that we write a program ONCE and use this same
EXACT logic for our internet apps. Everything will run on the same server but
we will have two types of clients 1. web based, 2. intranet based. Is this
possible? If so, what is it called in Microsoft speak? How to links would be
appreciated.
You can identify the type of user by IP address, for example, if an
address starting with 10.*, it's an internal network IP.

if (Request.Server Variables ["REMOTE_ADD R"].indexOf("10.") == 0) {
.....

Sep 10 '07 #2
Look into "remoting" or "web services" as two possible solutions. Maybe web
services would be the better solution. You expose your code via web methods
and both the website and applications use the web service.

"nuutuudnet " <fa*******@here .dewrote in message
news:76******** *************** ***********@mic rosoft.com...
We want to use allready written C sharp programs for our asp.net
applications. The idea is that we write a program ONCE and use this same
EXACT logic for our internet apps. Everything will run on the same server
but
we will have two types of clients 1. web based, 2. intranet based. Is this
possible? If so, what is it called in Microsoft speak? How to links would
be
appreciated.
--
cheers,
nuutuudnet

Sep 10 '07 #3
I do not want to reprogram. I want to use existing C#
Objekts/methods/programs in my internet app.
--
cheers,
nuutuudnet
"Alexey Smirnov" wrote:
On Sep 10, 2:20 pm, nuutuudnet <fakeem...@here .dewrote:
We want to use allready written C sharp programs for our asp.net
applications. The idea is that we write a program ONCE and use this same
EXACT logic for our internet apps. Everything will run on the same server but
we will have two types of clients 1. web based, 2. intranet based. Is this
possible? If so, what is it called in Microsoft speak? How to links would be
appreciated.

You can identify the type of user by IP address, for example, if an
address starting with 10.*, it's an internal network IP.

if (Request.Server Variables ["REMOTE_ADD R"].indexOf("10.") == 0) {
.....

Sep 10 '07 #4
We have heard of these two things but they are not exactly what we want. We
understand remoting to be a sort of physical shoving back and forth of data
between two apps. And Web services do not also fit our scenario. We have
existing allready written C# logic. We want asp.net (OR our internet
programs) to simply be able to use this C# logic. We are simply trying to
avoid the work of building two apps, one for web and one for intranet.
--
cheers,
nuutuudnet
"Aidy" wrote:
Look into "remoting" or "web services" as two possible solutions. Maybe web
services would be the better solution. You expose your code via web methods
and both the website and applications use the web service.

"nuutuudnet " <fa*******@here .dewrote in message
news:76******** *************** ***********@mic rosoft.com...
We want to use allready written C sharp programs for our asp.net
applications. The idea is that we write a program ONCE and use this same
EXACT logic for our internet apps. Everything will run on the same server
but
we will have two types of clients 1. web based, 2. intranet based. Is this
possible? If so, what is it called in Microsoft speak? How to links would
be
appreciated.
--
cheers,
nuutuudnet


Sep 10 '07 #5
Then just reference the dlls from your web project and you should be able to
use them as normal.

"nuutuudnet " <fa*******@here .dewrote in message
news:75******** *************** ***********@mic rosoft.com...
We have heard of these two things but they are not exactly what we want.
We
understand remoting to be a sort of physical shoving back and forth of
data
between two apps. And Web services do not also fit our scenario. We have
existing allready written C# logic. We want asp.net (OR our internet
programs) to simply be able to use this C# logic. We are simply trying to
avoid the work of building two apps, one for web and one for intranet.
--
cheers,
nuutuudnet
"Aidy" wrote:
>Look into "remoting" or "web services" as two possible solutions. Maybe
web
services would be the better solution. You expose your code via web
methods
and both the website and applications use the web service.

"nuutuudnet " <fa*******@here .dewrote in message
news:76******* *************** ************@mi crosoft.com...
We want to use allready written C sharp programs for our asp.net
applications. The idea is that we write a program ONCE and use this
same
EXACT logic for our internet apps. Everything will run on the same
server
but
we will have two types of clients 1. web based, 2. intranet based. Is
this
possible? If so, what is it called in Microsoft speak? How to links
would
be
appreciated.
--
cheers,
nuutuudnet



Sep 10 '07 #6
On Sep 10, 4:16 pm, nuutuudnet <fakeem...@here .dewrote:
We have heard of these two things but they are not exactly what we want. We
understand remoting to be a sort of physical shoving back and forth of data
between two apps. And Web services do not also fit our scenario. We have
existing allready written C# logic. We want asp.net (OR our internet
programs) to simply be able to use this C# logic. We are simply trying to
avoid the work of building two apps, one for web and one for intranet.
--
cheers,
nuutuudnet

You wrote:
Everything will run on the same server
Does it mean you will have the same application with two kind of
users, or you will have two applications: one for internet and one for
intranet? I don't see any point to build a web service here

Sep 10 '07 #7
Exactly, I have web users and in house intranet users. But we want both users
to make database changes in exactly and precisely the same way as far as
types, as far as date conversions, whatever. We hope with dotnet to be able
to write one program here in house, compile it, put one on the internet and
one local (both actually physically in the same machine) we'll write a GUI in
c# for in-house and an asp.net (??) GUI for the web but the kernal business
logic is exactly and precisely the same c#. I am hoping that someone could
tell me that it is indeed as simple as Aidy says just refrencing the methods,
classes and variables.
--
cheers,
nuutuudnet
"Alexey Smirnov" wrote:
On Sep 10, 4:16 pm, nuutuudnet <fakeem...@here .dewrote:
We have heard of these two things but they are not exactly what we want. We
understand remoting to be a sort of physical shoving back and forth of data
between two apps. And Web services do not also fit our scenario. We have
existing allready written C# logic. We want asp.net (OR our internet
programs) to simply be able to use this C# logic. We are simply trying to
avoid the work of building two apps, one for web and one for intranet.
--
cheers,
nuutuudnet

You wrote:
Everything will run on the same server

Does it mean you will have the same application with two kind of
users, or you will have two applications: one for internet and one for
intranet? I don't see any point to build a web service here

Sep 11 '07 #8
On Sep 11, 9:26 am, nuutuudnet <fakeem...@here .dewrote:
Exactly, I have web users and in house intranet users. But we want both users
to make database changes in exactly and precisely the same way as far as
types, as far as date conversions, whatever. We hope with dotnet to be able
to write one program here in house, compile it, put one on the internet and
one local (both actually physically in the same machine) we'll write a GUI in
c# for in-house and an asp.net (??) GUI for the web but the kernal business
logic is exactly and precisely the same c#. I am hoping that someone could
tell me that it is indeed as simple as Aidy says just refrencing the methods,
classes and variables.
--
cheers,
nuutuudnet

"Alexey Smirnov" wrote:
On Sep 10, 4:16 pm, nuutuudnet <fakeem...@here .dewrote:
We have heard of these two things but they are not exactly what we want. We
understand remoting to be a sort of physical shoving back and forth of data
between two apps. And Web services do not also fit our scenario. We have
existing allready written C# logic. We want asp.net (OR our internet
programs) to simply be able to use this C# logic. We are simply trying to
avoid the work of building two apps, one for web and one for intranet.
--
cheers,
nuutuudnet
You wrote:
Everything will run on the same server
Does it mean you will have the same application with two kind of
users, or you will have two applications: one for internet and one for
intranet? I don't see any point to build a web service here- Hide quoted text -

- Show quoted text -
What I ment, is that you can setup one application on one server for
all users. You didn't say that it has to be different (intranet/
internet), so why don't you make your existing intranet ASP.NET
application available in the internet?

Sep 11 '07 #9
On Sep 11, 3:36 pm, nuutuudnet <fakeem...@here .dewrote:
That is a very deep philosophical question :-) One reason amoung many is that
the system started out with the office app and then they added an internet
portal later. They expanded little by little. They want to stay with the same
model. Do you agree Smirnov with Aidy that the programs can simply be
referenced from asp.net? I am about to go out and buy a book but the choices
are overwelming and I just do not know which would fit my situation. One
thing is clear we will not be doing Web Services. We will only resort to
remoting if we cannot use/reuse ( or in this case reference) the c# in our
asp.net programs.
Well, the point is that in any case you will have two applications.
And if idea was to reduce the cost of development then it doesn't
really help, I think. If I were you, I would either go for one web
client for everyone, or for a Smart Client (for Windows users,
deployed over the web).

http://en.wikipedia.org/wiki/ClickOnce
http://msdn.microsoft.com/msdnmag/is.../05/ClickOnce/

Sep 11 '07 #10

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

Similar topics

242
13466
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any comments on past experience, research articles, comments on the matter would be much appreciated. I suspect something like C would be the best based on comments I received from the VB news group. Thanks for the help in advance James Cameron
1
1298
by: Lucas Graf | last post by:
I am trying to get the deployment to do what I want, but I just can't. I want my folders to be setup like below.. Main Program Folder - Program EXE - Program PDB - AppStart EXE - AppStart PDB - Program and AppSTart .config files
0
1445
by: Glenn Engelbart | last post by:
I am trying to find out a way to get more code re-use & object orientation in the UI portion of my apps. (There already is plenty of both in the DataAccess & Business Logic portion of my apps. But the code behind in each aspx page is huge, often 1000 lines. My apps are heavilly data driven, like the old client server apps with tons of DataGrids. I use Infragistics UltraWebGrid as my primary server control. And on each page, the code is...
7
3110
by: Oenone | last post by:
I'm sure there's an obvious way to do this, but I'm missing it so far. I have an ASP.NET application that relies on several DLLs to work. Currently in order to get my site working I have to put them all in the bin/ folder within my web site's directory. As I have numerous web sites, I want to be able to place all of these DLLs just once into a single location elsewhere on the disk (e.g., "D:\DLLs"). I don't want to put them into the...
9
1986
by: yevvi | last post by:
Hi, We have a product with bunch of dlls which are now built with Visual Studio 2003. We want to switch the build to use VS2005. I have read that in VS2005 runtime libraries come as side-by-side assemblies and that application has to have a manifest binding it to those assemblies. My question is, can previously built apps use my new dlls build with vs2005? It would be really important to make it work, because otherwise we would...
0
975
by: ashrafnairoukh | last post by:
Hi all, I Have Core Project include Core functionality, I want to reuse the Core Business functions in another project because the 2 projects using the same database. Lets Say this is the Case: CoreProject: Presentation->business->Data->DB
6
3801
by: Relaxin | last post by:
I'm coming from Borland C++ and am "somewhat" new to C#, but very seasoned in C++. I'm looking for a specific feature that Borland had that I can't seem to find in C#. In Borland that feature is a DataModule. This is a place where you place all of your Database and business logic. This logic can then be "bound" to your UI by use of Borland Datasource components.
8
2211
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the existing code. The options I've considered so far: 1. Create a new MC++ GUI project and add the *.c files to them and mark them with pragma unamanged. However, the /clr option does not compile *.c files, so I rename them to *.cpp, and now they...
3
3147
by: james | last post by:
WATYF <WATYF1@gmail.comwrote in news:eb43eb6a-afaa-4e39-ac0b-850afdb6d1e4@r66g2000hsg.googlegroups.com: It gets complicated. First, a reference: http://msdn.microsoft.com/en-us/library/cb6t8dtz(VS.80).aspx You might also try a:
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
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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...
0
10316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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,...
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
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.