Click here to Skip to main content
12,512,389 members (66,687 online)
Rate this:
 
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
Updated 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 24-Dec-12 3:12am
   
Thanks. It was very helpful. And what about the sensitive information?
Sandeep Mewara 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 27-Dec-12 11:14am
   
http://www.codeproject.com/Questions/516792/transferplusapluslistpluswhenplusredirectingplusto

Regards, cs101000
ProgramFOX 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2016
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