Click here to Skip to main content
15,894,646 members
Articles / Web Development / ASP.NET

ASP.NET Page Navigation Using Workflow 4.0

Rate me:
Please Sign up or sign in to vote.
4.70/5 (46 votes)
21 Feb 2011CPOL4 min read 131K   5.3K   88  
This tutorial demonstrates how Workflow 4.0 can be used for page navigation in ASP.NET.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BostonDealer
{
    public partial class HomePage : BasePage
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            if (!IsPostBack)
                Session["Customer"] = null;

        }
        protected void Page_Load(object sender, EventArgs e)
        {
          
        }

        protected void btnNext_Click(object sender, EventArgs e)
        {
            customer.vehicle.VehicleType = RadioButtonList1.SelectedValue;
            GotoNextPage();
        }
    }
}

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
Developing software since 2000.

Comments and Discussions