When you are working with ASP.NET you may have the need to persistence and / or tracking. I have put together two examples, one with shared databases and the other with separate, and included the command scripts to create the databases for you. There are VB and C# versions of each sample.
When you run the project you will start on Default.aspx. If there are no existing orders that have not been completed you are redirected to Order.aspx. If there are any existing orders there will be a link for each existing order. Click on the link to start processing the order from its current state. The order number will be retrieved from the tracking database for any order that is at least in the Created state. You can click on the enabled button to transition the order through the order process.
This posting is provided “AS IS” with no warranties, and confers no rights.