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

Navigational Workflows Unleashed in WWF/ASP.NET 3.5

Rate me:
Please Sign up or sign in to vote.
4.97/5 (42 votes)
21 Oct 2008CPOL18 min read 226.1K   1.6K   165  
Case-study on the internals of a Navigational Workflow engine for a fictional dating website called “World Wide Dating”.
<%@ Page Language="C#" MasterPageFile="~/DateSiteMaster.Master" AutoEventWireup="true" CodeBehind="appearance.aspx.cs" Inherits="DateSite.appearance" Title="World Wide Dating: Appearance" %>
<%@ MasterType VirtualPath="~/DateSiteMaster.Master" %>
<%@ Register TagPrefix="ux" TagName="NavigationPane" Src="~/NavigationPane.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <h2>Appearance</h2>
    <br />
    
    <table style="text-align: left;">
        <tr>
            <td>
                <div>
                    <table>
                        <tr>
                            <td style="text-align: right;">
                                What color are your eyes?&nbsp;
                            </td>
                            <td style="text-align: left;">
                                <asp:DropDownList ID="ddlEyeColor" runat="server">
                                    <asp:ListItem Text="No Answer" Value="noanswer" />
                                    <asp:ListItem Text="Black" Value="black" />
                                    <asp:ListItem Text="Blue" Value="blue" />
                                    <asp:ListItem Text="Brown" Value="brown" />
                                    <asp:ListItem Text="Gray" Value="gray" />
                                    <asp:ListItem Text="Green" Value="green" />
                                </asp:DropDownList>                
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">
                                What color is your hair?&nbsp;
                            </td>
                            <td style="text-align: left;">
                                <asp:DropDownList ID="ddlHairColor" runat="server">
                                    <asp:ListItem Text="No Answer" Value="noanswer" />
                                    <asp:ListItem Text="Black" Value="black" />
                                    <asp:ListItem Text="Brown" Value="brown" />
                                    <asp:ListItem Text="Blonde" Value="blonde" />
                                    <asp:ListItem Text="Red" Value="red" />
                                    <asp:ListItem Text="Gray" Value="gray" />
                                    <asp:ListItem Text="Bald" Value="bald" />
                                </asp:DropDownList>            
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">
                                What is your best feature?&nbsp;
                            </td>
                            <td style="text-align: left;">
                                <asp:DropDownList ID="ddlBestFeature" runat="server">
                                    <asp:ListItem Text="No Answer" Value="noanswer" />
                                    <asp:ListItem Text="Arms" Value="arms" />
                                    <asp:ListItem Text="Belly button" Value="bellybutton" />
                                    <asp:ListItem Text="Butt" Value="butt" />
                                    <asp:ListItem Text="Calves" Value="calves" />
                                    <asp:ListItem Text="Chest" Value="chest" />
                                    <asp:ListItem Text="Eyes" Value="eyes" />
                                    <asp:ListItem Text="Lips" Value="lips" />
                                    <asp:ListItem Text="Hair" Value="hair" />
                                </asp:DropDownList>            
                            </td>
                        </tr>
                    </table>
                            
                    <hr />
                    
                    <div style="text-align: center;">
                        <asp:Button ID="btnPrevious" Width="125px" Height="30px" runat="server" Text="Previous" onclick="btnPrevious_Click" />&nbsp;
                        <asp:Button ID="btnNext" Width="125px" Height="30px" runat="server" Text="Next" onclick="btnNext_Click" />
                    </div>     
                </div>            
            </td>
            <td>
                <ux:NavigationPane ID="uxNavigationPane" runat="server" />
            </td>
        </tr>
    </table>
    
</asp:Content>

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
Founder Turing Inc.
United States United States

Comments and Discussions