Re: Connection between two separate ASP.Net Application
- From: "Daniel Fisher\(lennybacon\)" <info@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 15:10:05 +0100
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:AttilaForczek@xxxxxxxxxxxxxxxxxxxxxxxxx]
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), Iwould
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
.
- Prev by Date: Re: How to read a text file into a string variable
- Next by Date: Re: Go back to previous page (asp.net 2.0)
- Previous by thread: Re: Connection between two separate ASP.Net Application
- Next by thread: Re: Server.mappath
- Index(es):
Relevant Pages
|