[thelist] Passing variables between aspx pages

Ken Schaefer ken.schaefer at gmail.com
Tue Aug 17 21:02:46 CDT 2004


On Wed, 18 Aug 2004 01:24:40 +0100, Jason Robbins
<evolt at whisky-fudge.org.uk> wrote:
> I have an aspx page that takes in a users credit card details, I then
> want to pass the user on to a confirmation page before processing the
> card. Using cookies, or query strings are out as i do not want to be
> passing credit card details back to the client even if it is over HTTPS.
> 
> The only thing I've found (but been confused by) is Server.Transfer, is
> this a suitable way? If so does anyone have any good links to explain
> it, MSDN description isn't all that good. Or does anyone know of another
> way?


Why not just use the one page, and have some kind of MVC that
determines which content to show? (hide one panel, and display
another, and put all your other text and controls inside the panels)

You can hold the variables anywhere you want - eg in viewstate if you
choose to use encrypted viewstate. Otherwise session variables, DB etc
are other options.

Cheers
Ken


More information about the thelist mailing list