473,511 Members | 10,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connection between two separate ASP.Net Application

Hi,

Please help me to connect two ASP.Net applications. One is an online store,
based on Commerce Server 2002, the other is a database editing application.
Both are ASP.Net 1.1, VB applications.

In detail:
Technolgies: SQL2000, VS2003, .Net Framework 1.1, ASP.Net, VB, Commerce
Server 2002
From a Commerce Server 2002 online store (Retail 2002 Starter Site), I would
like to access an other application, which is a data handling ASP.Net
application. My goal is to call an AddDATAPage in the other applicatin, from
the online store, when the user clicks the Purchase button. Before the online
store's code of handling the purchase runs, I want to add a record to a table
with the other application's page, and when it is done, return to the code of
the online store's purchase button, to go on with the process of the purchase.

Thi is what I have tried so far:
In the online store's purchasing page's, Page_Load:
If HttpContext.Current.Items("IsOrderFormFilled") = True Then
Me.PurchaseBtn_Clicked(Nothing, Nothing)
Else
HttpContext.Current.Items.Add("IsOrderFormFilled", False)
End If

In the online store's purchasing page's, PurchaseBtn_Clicked:
If HttpContext.Current.Items("IsOrderFormFilled") = False Then
HttpContext.Current.Items("CheckoutUrl") =
HttpContext.Current.Request.Url.ToString
Response.Redirect("http://localhost/MMCS/CHAIN/AddCHAINPage.aspx")
Response.End()
End If

In the other application's page, after inserting the data to the database:
HttpContext.Current.Items("IsOrderFormFilled") = True
And I redirect back to the online store's purchaseing (Checkout) page.

But it doesn't work. The HttpContext.Current.Items("IsOrderFormFilled") is
always Nothing.

How can I send data between the applications? (e.g. the Product from the
online store, or the success of filling the data on the other application)
And how can I swich from one application to another, and back again, without
loosing the values like logged in user, pruducts in the basket, etc.?

Thanks for your help,

Attila
Feb 23 '06 #1
4 1306
You need to treat them as entirely seperate applications, because thats what
they are.

I would suggest that the best way to tansfer values between them is to pass
the data using some form of web request to the AddDATAPage as part of the
click event you mention below - via a simple webservice call, or via a
webrequest get or post and return your IsOrderFormFilled value.

http://msdn.microsoft.com/library/de...classtopic.asp

Regards

John Timney
Microsoft MVP

"Attila Forczek" <At***********@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
Hi,

Please help me to connect two ASP.Net applications. One is an online
store,
based on Commerce Server 2002, the other is a database editing
application.
Both are ASP.Net 1.1, VB applications.

In detail:
Technolgies: SQL2000, VS2003, .Net Framework 1.1, ASP.Net, VB, Commerce
Server 2002
From a Commerce Server 2002 online store (Retail 2002 Starter Site), I
would
like to access an other application, which is a data handling ASP.Net
application. My goal is to call an AddDATAPage in the other applicatin,
from
the online store, when the user clicks the Purchase button. Before the
online
store's code of handling the purchase runs, I want to add a record to a
table
with the other application's page, and when it is done, return to the code
of
the online store's purchase button, to go on with the process of the
purchase.

Thi is what I have tried so far:
In the online store's purchasing page's, Page_Load:
If HttpContext.Current.Items("IsOrderFormFilled") = True Then
Me.PurchaseBtn_Clicked(Nothing, Nothing)
Else
HttpContext.Current.Items.Add("IsOrderFormFilled", False)
End If

In the online store's purchasing page's, PurchaseBtn_Clicked:
If HttpContext.Current.Items("IsOrderFormFilled") = False Then
HttpContext.Current.Items("CheckoutUrl") =
HttpContext.Current.Request.Url.ToString
Response.Redirect("http://localhost/MMCS/CHAIN/AddCHAINPage.aspx")
Response.End()
End If

In the other application's page, after inserting the data to the database:
HttpContext.Current.Items("IsOrderFormFilled") = True
And I redirect back to the online store's purchaseing (Checkout) page.

But it doesn't work. The HttpContext.Current.Items("IsOrderFormFilled") is
always Nothing.

How can I send data between the applications? (e.g. the Product from the
online store, or the success of filling the data on the other application)
And how can I swich from one application to another, and back again,
without
loosing the values like logged in user, pruducts in the basket, etc.?

Thanks for your help,

Attila

Feb 23 '06 #2
Web Services would solve your needs here.

Daniel Fisher(lennybacon) | Software Engineer | newtelligenceR AG
blog: http://staff.newtelligence.net/danielf
usergroup: http://vfl-niederrhein.net
-----Original Message-----
From: Attila Forczek [mailto:At***********@discussions.microsoft.com]
Posted At: Thursday, February 23, 2006 2:25 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Connection between two separate ASP.Net Application
Subject: Connection between two separate ASP.Net Application

Hi,

Please help me to connect two ASP.Net applications. One is an online
store,
based on Commerce Server 2002, the other is a database editing
application.
Both are ASP.Net 1.1, VB applications.

In detail:
Technolgies: SQL2000, VS2003, .Net Framework 1.1, ASP.Net, VB, Commerce
Server 2002
From a Commerce Server 2002 online store (Retail 2002 Starter Site), I
would
like to access an other application, which is a data handling ASP.Net
application. My goal is to call an AddDATAPage in the other applicatin,
from
the online store, when the user clicks the Purchase button. Before the
online
store's code of handling the purchase runs, I want to add a record to a
table
with the other application's page, and when it is done, return to the
code of
the online store's purchase button, to go on with the process of the
purchase.

Thi is what I have tried so far:
In the online store's purchasing page's, Page_Load:
If HttpContext.Current.Items("IsOrderFormFilled") = True Then
Me.PurchaseBtn_Clicked(Nothing, Nothing)
Else
HttpContext.Current.Items.Add("IsOrderFormFilled", False)
End If

In the online store's purchasing page's, PurchaseBtn_Clicked:
If HttpContext.Current.Items("IsOrderFormFilled") = False Then
HttpContext.Current.Items("CheckoutUrl") =
HttpContext.Current.Request.Url.ToString
Response.Redirect("http://localhost/MMCS/CHAIN/AddCHAINPage.aspx")
Response.End()
End If

In the other application's page, after inserting the data to the
database:
HttpContext.Current.Items("IsOrderFormFilled") = True
And I redirect back to the online store's purchaseing (Checkout) page.

But it doesn't work. The HttpContext.Current.Items("IsOrderFormFilled")
is
always Nothing.

How can I send data between the applications? (e.g. the Product from the

online store, or the success of filling the data on the other
application)
And how can I swich from one application to another, and back again,
without
loosing the values like logged in user, pruducts in the basket, etc.?

Thanks for your help,

Attila

Feb 23 '06 #3
> webrequest get or post and return your IsOrderFormFilled value.
I would prefer using post for that, to have it not visible in the url, an
dhave it SSL encripted.
But I don't know, how can I do it programatically. So from the VB code, how
can I redirect to an URL, and posting variables data with it?
Could you help me out with a simple example, instead of this pseudo code?
IsOrderFormFilled As Boolean
Url as String
Redirect(Url, Parameter:IsOrderFormFilled, SendingMethod:POST)

Thanks,
Attila
Feb 23 '06 #4
You would not redirect - you would make a web request and carry on
processing yuor click event.

http://www.asp.net/QuickStart/util/s...GETwithSSL.src

..........or make a webservice call.

--
Regards

John Timney
Microsoft MVP

"Attila Forczek" <At***********@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
webrequest get or post and return your IsOrderFormFilled value.

I would prefer using post for that, to have it not visible in the url, an
dhave it SSL encripted.
But I don't know, how can I do it programatically. So from the VB code,
how
can I redirect to an URL, and posting variables data with it?
Could you help me out with a simple example, instead of this pseudo code?
IsOrderFormFilled As Boolean
Url as String
Redirect(Url, Parameter:IsOrderFormFilled, SendingMethod:POST)

Thanks,
Attila

Feb 23 '06 #5

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

Similar topics

1
4490
by: Mark | last post by:
I know that DB2 LUW version 8 has "connection pooling" that provides a connection concentrator (limits the number of simultaneous connections that can occur). But does it really provide connection...
4
2745
by: Mark | last post by:
OK. Here we go. I have an ASP.NET application that does many hits to a SQL Server DB on a separate server. When I first created this application (2 years ago) and was very new to ASP/ASP.NET, to...
2
5365
by: Johnson | last post by:
I'm trying to fix a "sub optimal" situation with respect to connection string management. Your thoughtful responses will be appreciated. I just started with a new client who has a bunch of legacy...
2
2195
by: Johnson | last post by:
I'm trying to fix a "sub optimal" situation with respect to connection string management. Your thoughtful responses will be appreciated. I just started with a new client who has a bunch of legacy...
0
7245
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
7427
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...
1
7085
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...
0
7512
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...
0
5671
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,...
1
5069
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...
0
1577
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 ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.