1
Answer

asp.net 2010 button

Sie Ste

Sie Ste

12y
1.1k
1

I am adding some additional code to a C# 2010 web form application that I would like suggestions on how to accomplish the following:

1. I just created an additonal web form page to an existing application so the user can enter more information. I basically    want the user to hit the 'back' button so they can return to the original web page and correct the values for up to 4 specific fields. There are two additional fields that the user is not allowed to change.

2. To point the user to the previous page, I do the command,    "Response.Redirect("~/Att.aspx"); This works,

3. I want to be able to load all the information the user has entered already when the user returns to this web page. When the  user returns to this webpage, the data has already been stored in two tables in the database.

4. Thus I am looking for your suggestion on how to accomplish this goal. I am thinking of the following options:

    a. returning the user to the orginal web page in the state it was when they hit the 'next' button to go to the previous webpage. However I do not know how to proceed with this method.

    b. Obtain the values from the database, or

    c. use session variables. Thus can you tell me what you think the best method would be and examples of code of how you would accomplish this goal?

Answers (1)