|
using System;
namespace DateSite
{
/// <summary>
/// The last page encountered in the navigational workflow.
/// </summary>
public partial class complete : System.Web.UI.Page
{
private WorkflowManager _workflowManager;
/// <summary>
/// Page initialization code.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Init(object sender, EventArgs e)
{
// create an instance of the navigational workflow manager
_workflowManager = new WorkflowManager(Application, Session, Request, Response);
// make sure the workflow is synchronized... meaning the page we are on is the page we should be on / can be on
_workflowManager.SynchronizeWorkflow();
}
/// <summary>
/// Navigate to the previous page in the navigational workflow.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnPrevious_Click(object sender, EventArgs e)
{
// navigate to the previous page
string pageToGoTo = _workflowManager.Previous();
_workflowManager.ManagedRedirect(pageToGoTo);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.