G
Guest
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
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