stupid question, ASP.NET / C#

  • Thread starter Thread starter Justin Rich
  • Start date Start date
J

Justin Rich

i have my form (default.aspx) and then my logic (default.aspx.cs) and when
the logic is done, i want it to go to another page to display the results
(results.aspx)...

i dont really want to have to clear or hide my form on the default.aspx
page...

i need to pass a few control values to a new page and just display them.

i assume this is easy, and stupid but i couldnt locate it.

with asp i would do something like server.transfer or response.redirect

is that still the case here?

Thanks
Justin
 
Server.Transfer will transfer execution to a different page without notifying the browser (Query and Post data is retained).
Response.Redirect will transfer execution to a different page via a round trip to the client (Query and Post data is lost).

Choose which is the most appropriate for your situation.

You can also "pass" data from one page to the next using Session state. i.e.

Session["my_data"] = 10;

Session variables may be used by any page. Once a variable is set in the Session state collection, it will remain there until the
user's session expires.
 
Back
Top