Ok, let's try something different...
I have a submit form on page1 and want to reach page2 and retreive the
values.
To do this, i have several methods (cache, shared variable, session
variable...) but i am focused on these:
* page1: on the button1 clic method for ex, i have
Response.Redirect["page2.aspx?id=45"] and on page2 i have label1.text =
Request.Querystring["id"]
* page1 : i create a property (id for ex...) with a get (do not need a set
of course...) and on the button1 clic method i have a
Server.Transfer("page2.aspx")
And on page2 i have:
page1 mypage = (page1)Context.handler
label1.text = page1.id
These two solutions both works. But i need to know if there is one better
than the other...
Is it more clear ?!
Thanks for taking time.