473,320 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Alternative to QeryString

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.
Nov 18 '05 #1
3 1007
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"))

"Steve Peterson" <sp*******@arrakis.es> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
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.

Nov 18 '05 #2
Thanks for your reply. However, isn't there a way to create a
Server.Transfer object or something along those lines?

"Rick Spiewak" <ri*********@mindspring.com> wrote in message
news:Os**************@tk2msftngp13.phx.gbl...
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"))

"Steve Peterson" <sp*******@arrakis.es> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
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.


Nov 18 '05 #3
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.

"Steve Peterson" <sp*******@arrakis.es> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
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.

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

46
by: Robin Becker | last post by:
It seems that the rotor module is being deprecated in 2.3, but there doesn't seem to be an obvious alternative. I'm using it just for obfuscation. It seems we have ssl available in 2.3 for sockets,...
99
by: Paul McGuire | last post by:
There are a number of messages on the python-dev mail list that indicate that Guido is looking for some concensus to come from this list as to what *one* alternative syntax for decorators we would...
28
by: Paul McGuire | last post by:
Well, after 3 days of open polling, the number of additional votes have dropped off pretty dramatically. Here are the results so far: Total voters: 55 (with 3 votes each) Votes for each choice...
1
by: Bob Smith | last post by:
so is there any alternative ( standard only ) to using in_avail()? I need to poll with given intervals the input stream, and if there is data to be read I want to read it. thank you /B
43
by: Dimitri Debruyne | last post by:
Hi group I am in the process of developing a website in XHTML Strict and CSS. Is there a way to open a link in a new window without the use of frames or Javascript or something ? I didn't find a...
4
by: tonyz.wrightz | last post by:
Hi, I have used the setup wizard to build an installer that installs my asp.net application. Problem is, at my current job, they have an alternative web folder at the root level (to clarify, at...
1
by: prasaddevivara | last post by:
I am using the outerHTML property to modify the HTML of existin elements in a web page in Internet Explorer. But same outerHTM property is not working in firefox browser, Anybody can tell me a...
3
by: Will McGugan | last post by:
Hi, Is there a naming convention regarding alternative constructors? ie static methods where __new__ is called explicity. I use lower_case for methods in general, but thought maybe CamelCase...
0
by: sachintandon | last post by:
Hello all, Thanks in advance for your help I have a problem in sending emails, my requirement is to send multipart alternative emails with attachments, I'm able to send text with attachments or...
11
by: Francine.Neary | last post by:
I've read that as well as "normal" Java-like function definitions, e.g. int main(int argc, char **argv), you can also choose to use an alternative syntax, i.e. int main(argc, argv) int argc;...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.