Response.redirect
-
Hi there I want to move between two pages without using the response redirect option pared with the eg. ?variable=0 . I dont want the variable to be displayed in the ULR menu. What would be the best way of doing this? Thanks.
-
Use the Session object. On page 1:
Session["variable"] = 0;
Response.Redirect("~/Page2.aspx");Then on page 2:
int variable = (int)Session["variable"];
-
http://www.developer.com/net/asp/article.php/3299641[^]
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School) -
http://www.developer.com/net/asp/article.php/3299641[^]
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)