I have a CustomerID being retrieved and set into a Global Variable.
What I need is to use that Customer ID on the same page (code behind) and use it as a parameter for a SqlDataSource query.
Then I want to store the results of the query (the customers zipcode) into a session variable. All of this need to happen in the same click event.
How can I Bind data to a Session variable. I don’t want to bind it to a control first. I just want the data (zip code) to be stored right into the Session Var.
Thanks
Should
Session[“DataName”] = code to get items not work?