Is it ASP or ASP.NET that you use? You may want to consider using Session variable as you can access it everywhere you want within the application and it lives as long as Browser is open and can only be accessed by user who has a current session.
session("ClientID" = 'your_query_string' ...and as you logout you can either reset the session variable: session("ClientID" = "" or kill it: session.abandon() - in this case all session variables will be cleared.
...well then you can add a VB Module into your project: something like 'common.vb' and declare your variable as "Friend" inside of it. It'll be seen everywhere within the project:
Module common
friend ClientID as String
End Module
In this case you need to remember that other users that come in to the application will be seeing this variable and even will be able to update it since the var lives on the server. That is why in my applications I am trying to use Session variables as they pertain only to 1 user that is loged on to application.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.