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

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 1461
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.ServerVariables ["REMOTE_ADDR"].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**********************************@microsof t.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.ServerVariables ["REMOTE_ADDR"].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**********************************@microsof t.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**********************************@microsof t.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**********************************@microso ft.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
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...
1
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...
0
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. ...
7
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...
9
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...
0
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...
6
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...
8
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...
3
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:...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
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...
0
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,...
0
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...

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.