scampercat

scampercat

  • NA
  • 189
  • 0

web form 2010 working with data

Jun 13 2012 6:19 PM
I would like to find alternatives for updating a database every time the user clicks a 'next' or  'submit' button on a C# 2010 web form application

Right now I have added two new web pages to an existing C# 2010 web form application. Currently when the user enters information on the first page and hits the next button, the 'main' table and the 'sub' tables have rows inserted into the database. When the user is on the second web page, they can update additional information on the 'main' table only.

Also on the second web page the user can click a 'previous' button and return to the first page. The user can correct fields that were incorrect on the first page. They hit the submit button and those columns are updated on the main table and the user is directed to the second web page. When the user hits the 'submit' button on the second page the database is updated again.

Thus I would like to find a way to pass information between the first web page and second web page and not update the database. I only want to update the database when the user clicks the 'submit' button on the second page.

Can you tell me and/or point me to a reference on how to accomplish this task?