The only way that I have been successful at doing this is to use an ASP.NET HiddenField control. This control is accessible in your server side (vb.net or C# code) and it is accessible in your JavaScript code. I'm sure that you could also use Cookies, but HiddenFields are a lot easier to use.
Comment