Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 27, 2012 04:19 PM by geomar
Mar 27, 2012 03:36 PM|LINK
I'm looking for feedback on passing data to another page through Encrypted Cookie.
Instead of passing small amounts of data to a page by using data in Session which is to some degree volatile, or in a query string which is even more volatile or using CrossPagePost back or ServerTransfer which may not be appropriate for all circumstances,
what is the problem with encrypting cookie key and cookie value, and then passing it to the next page, and expiring the cookie at that time.?
Your thoughts would be appreciated.
Mar 27, 2012 04:19 PM|LINK
I found a solution in CrossPagePostBack
I did not know that you could still use the CommandEvent on CrossPagePostback button. I thought PostbackUrl worked only like an href.
So set PostbackUrl, CommandArgument
and subscribe to the button's CommandEvent.
In CommandEvent set Page properties you want passed.
In the destination page, read the properties from the PreviousPage property.