If I get the question correct, you want to set the value on 1st page load and then access it on button clikc in postback. Use the below in page_load():
if(!IsPostBack)
Session("myval")=value;
On button click, you can get the value you have set as below:
string val = Session("myval").ToString();