I have a Javascript function that pulls down variables, like so:
function OnClientCloseSecure(oWnd, args) { var arg = args.get_argument();
One way would be to create hidden value and set the runat attribute to server. you can get the value.
Code Behind:
string value = Hidden1.Value;