Click here to Skip to main content
11,640,445 members (63,704 online)
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 7:23am
Edited 27-Dec-12 5: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 Mika Wendelius 300
1 CPallini 209
2 OriginalGriff 165
3 Sergey Alexandrovich Kryukov 139
4 Afzaal Ahmad Zeeshan 130
0 Mika Wendelius 200
1 OriginalGriff 145
2 CPallini 115
3 jgakenhe 40
4 sasanka sekhar panda 30


Advertise | Privacy | Mobile
Web03 | 2.8.150731.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