stupid question, ASP.NET / C#

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
 
D

Dave

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top