Hi
I'm new to c# and have a really odd occurrence.
I'm updating the payment pages for SagePay to their new asp.net gateway and want to pass in a couple of additional session variables from a standard stand alone .HTML page.
The code behind I have on the receiving page is as follows:-
protected void Page_Load(object sender, EventArgs e)
{
string GetPassbasket = Request.Form["PassBasket"];
Response.Write(GetPassbasket);
Session["PassCart"] = GetPassbasket ;
Response.Write("<br/>PassCart: " + Session["PassCart"]) ;
}
which appears to be picking up the form field and is displaying the session correctly - however it's reverting to null/empty when I move from that page to where I want to use the value.
However, and this is the bit I really don't get, if I change the line above from
Session["PassCart"] = GetPassbasket ;
to ...
Go to the complete details ...