Passing values between ASP.NET websites

  • Thread starter Thread starter Prefers Golfing
  • Start date Start date
P

Prefers Golfing

I have two websites, Ping and Pong. I want to pass an object between them
and have not had any luck with either HTTPSession or HTTPContext. Can this
be done? Thanks.

Ping code in button click event

HttpContext.Current.Session.Add("DashboardObject", myObject);

Response.Redirect(http://pong/);



Pong code in Page_Load

MyObject myObject =
(MyObject)HttpContext.Current.Session["DashboardObject"];

if (myObject == null)

{

Response.Redirect("Login.aspx");

}

TextBox1.Text = "Found Items!";
 
I have two websites, Ping and Pong. I want to pass an object between them
and have not had any luck with either HTTPSession or HTTPContext. Can this
be done? Thanks.

Ping code in button click event

HttpContext.Current.Session.Add("DashboardObject", myObject);

Response.Redirect(http://pong/);

Pong code in Page_Load

MyObject myObject =
(MyObject)HttpContext.Current.Session["DashboardObject"];

if (myObject == null)

{

Response.Redirect("Login.aspx");

}

TextBox1.Text = "Found Items!";

Hi

I hope I'm not teaching grandma to suck eggs but web services pass
information between web sites using SOAP.

Any help?
 
Stan said:
I have two websites, Ping and Pong. I want to pass an object between them
and have not had any luck with either HTTPSession or HTTPContext. Can
this
be done? Thanks.

Ping code in button click event

HttpContext.Current.Session.Add("DashboardObject", myObject);

Response.Redirect(http://pong/);

Pong code in Page_Load

MyObject myObject =
(MyObject)HttpContext.Current.Session["DashboardObject"];

if (myObject == null)

{

Response.Redirect("Login.aspx");

}

TextBox1.Text = "Found Items!";

Hi

I hope I'm not teaching grandma to suck eggs but web services pass
information between web sites using SOAP.

Any help?

Just use POST (that is what SOAP uses)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top