Passing hidden variables to Vb.net
There are three ways to transfer data to the next page:
-
In the query string
This is limited by the size of the URL that the browser can handle, around 1000 characters are considered safe.
-
In form data
This requires you to post the form instead of using
Response.Redirect
. You can put hidden fields on the page. The values ββare thus not completely hidden as they might be visible in the page source and they are sent in the request, but not immediately displayed as in the URL. -
In session variables
This does not send data directly, instead only the session id is sent in the request (as a cookie), the session variables never leave the server.
There is a slight difference between the methods used when a user has more than one window open showing pages from your site. In the first two methods, each window has its own set of data, but using the third method means that all windows use the same data.
a source to share