Alternative to QeryString

  • Thread starter Thread starter Steve Peterson
  • Start date Start date
S

Steve Peterson

Hello

Is there a more elegant .NET way to pass info from one page to the next
without the querystring "?Id=45" (example) way?. I have an app in wich I
would like to pass information from one page to another without the "?Id=45"
being visible in the location bar..

TIA
Steve.
 
You can store data in session state or the cache:
Session("Id") = 45

Then, on the next page:
Dim Id as Integer = CInt(Session("Id"))
 
Thanks for your reply. However, isn't there a way to create a
Server.Transfer object or something along those lines?
 
There is no more elegant way to pass info from one page to the next.
However, there are quite a few ways that can be just AS elegant, depending
upon your business and design requirements. Here is a partial list:

Form Post
Server.Transfer
Cookies
Session
Application
Application Cache
Web Service method call
Remoting Call

In any given situation, ONE of these would be the most elegant method to
use. However, WHICH one depends upon your design and business requirements.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top