Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET HTML Webmatrix
I want to redirect from a page to another. But I need some variables from the source page to be delivered to the target page in order to be used by it. How can I do that with asp code.
Posted 23-Dec-12 8:23am
Edited 27-Dec-12 6:18am
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can use QueryStrings if the data is small and not sensitive.
 
For details of how to pass and use query strings, look here:
Passing variables between pages using QueryString[^]
Another link describing the same[^]
  Permalink  
Comments
cs101000 at 24-Dec-12 3:12am
   
Thanks. It was very helpful. And what about the sensitive information?
Sandeep Mewara at 24-Dec-12 4:37am
   
For sensitive information, there are other ways to transfer data like Session, Cache, etc. If you have any specific scneario, do post your query (new question in detail), people would be happy to share the ways to handle it.
cs101000 at 27-Dec-12 11:14am
   
http://www.codeproject.com/Questions/516792/transferplusapluslistpluswhenplusredirectingplusto
 
Regards, cs101000
ProgramFOX at 27-Dec-12 12:17pm
   
+5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 455
1 Sergey Alexandrovich Kryukov 312
2 DamithSL 179
3 King Fisher 179
4 Peter Leow 154
0 OriginalGriff 240
1 Maciej Los 95
2 Sascha Lefévre 85
3 King Fisher 70
4 F-ES Sitecore 55


Advertise | Privacy | Mobile
Web02 | 2.8.150327.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100