Re: Connection between two separate ASP.Net Application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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), 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

.



Relevant Pages

  • Re: Connection between two separate ASP.Net Application
    ... Please help me to connect two ASP.Net applications. ... the online store, when the user clicks the Purchase button. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Hi Jeff:Wise words, as usual, and I would not disagree with anything you have
    ... I guess it doesn't notify me when a response has been posted and I didn't realize any responses had been posted until I did a search today for TheContractorsGroup. ... I don't actually issue "keys" when someone purchases their documentfrom me, they just download it after their purchase is complete, and if they can't get it downloaded then I email it to them. ... They aren't required to be online ever to use the form, it resides on their computer just like any other document and they can use it as often as they need. ...
    (microsoft.public.mac.office.word)
  • Technology Tips for PwMS
    ... I need to be enlarged (like an online comic strip or an imbedded photo ... I use voice dialing on my cell phone to avoid scrolling through menus, ... There are a number of different screen readers available to purchase, ... medication reminders via e-mail. ...
    (alt.support.mult-sclerosis)
  • Re: Technology Tips for PwMS
    ... I need to be enlarged (like an online comic strip or an imbedded photo ... I use voice dialing on my cell phone to avoid scrolling through menus, ... There are a number of different screen readers available to purchase, ... medication reminders via e-mail. ...
    (alt.support.mult-sclerosis)
  • Re: Palin strikes again
    ... their online banking or to make an online purchase using your visa/debit ... My Visa card company tracks me. ... If they see an unusual purchase, or a purchase in a different state they'll call; just to keep my card protected. ... Market Tracking seems to work to my benefit. ...
    (rec.gambling.poker)