View Full Version : I need to pass variable values from one page to another

03-19-2007, 07:42 PM
Hi everybody!

I need help to pass variable values from one page to another like this:
when I click a link (lets say on page default.aspx) to open the other page (lets say results.aspx) and when i click on the link in the address bar to be shown like: mysite.com/results.aspx?variableA=variableAvalue&variableB=variableBvalue

So if you have ideas, I'm waiting!

Thanks in advance!


03-19-2007, 10:28 PM
You might want to do it this way:


You can also use Server.Transfer instead. To see the differences and decide which one would work best in your situation, you might to visit this page (http://www.developer.com/net/asp/article.php/3299641).

03-19-2007, 10:41 PM
But that is only one half of my question...

What about to get those values in the second page and do whatever i want with them (to assign those values to variables in the second page for later use)?

03-19-2007, 11:04 PM
For example:

Dim variableA as String = Request.QueryString("variableA")

03-19-2007, 11:06 PM

I'll go for implementation now!

I hope it will work!!!
Thank you very much!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum