Click here to Skip to main content
15,894,405 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 225.8K   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="basics.aspx.cs" Inherits="DateSite.basics" Title="World Wide Dating: Basics" %>
<%@ 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>Basics</h2>
    <br />
    
    <table style="text-align: left;">
        <tr>
            <td>
                <div>    
                    <table>
                        <tr>
                            <td style="text-align: right;">
                                Who are you looking for?&nbsp;
                            </td>
                            <td style="text-align: left;">
                                <asp:DropDownList ID="ddlLookingFor" runat="server">
                                    <asp:ListItem Text="Women" Value="women" Selected="True" />
                                    <asp:ListItem Text="Men" Value="men" />
                                </asp:DropDownList>                
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">
                                Between the ages of&nbsp;
                            </td>
                            <td style="text-align: left;">
                                <asp:DropDownList ID="ddlStartAge" runat="server">
                                    <asp:ListItem Text="18" Value="18" />
                                    <asp:ListItem Text="19" Value="19" />
                                    <asp:ListItem Text="20" Value="20" />
                                    <asp:ListItem Text="21" Value="21" />
                                    <asp:ListItem Text="22" Value="22" />
                                    <asp:ListItem Text="23" Value="23" />
                                    <asp:ListItem Text="24" Value="24" />
                                    <asp:ListItem Text="25" Value="25" />
                                </asp:DropDownList>                
                                &nbsp;and&nbsp;
                                <asp:DropDownList ID="ddlEndAge" runat="server">
                                    <asp:ListItem Text="18" Value="18" />
                                    <asp:ListItem Text="19" Value="19" />
                                    <asp:ListItem Text="20" Value="20" />
                                    <asp:ListItem Text="21" Value="21" />
                                    <asp:ListItem Text="22" Value="22" />
                                    <asp:ListItem Text="23" Value="23" />
                                    <asp:ListItem Text="24" Value="24" />
                                    <asp:ListItem Text="25" Value="25" />
                                </asp:DropDownList>                    
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">
                                How tall are you?&nbsp;
                            </td>
                            <td style="text-align: left;">
                                <asp:DropDownList ID="ddlFeet" runat="server">
                                    <asp:ListItem Text="4" Value="4" />
                                    <asp:ListItem Text="5" Value="5" />
                                    <asp:ListItem Text="6" Value="6" />
                                </asp:DropDownList>
                                &nbsp;feet&nbsp;
                                <asp:DropDownList ID="ddlInches" runat="server">
                                    <asp:ListItem Text="0" Value="0" />
                                    <asp:ListItem Text="1" Value="1" />
                                    <asp:ListItem Text="2" Value="2" />
                                    <asp:ListItem Text="3" Value="3" />
                                    <asp:ListItem Text="4" Value="4" />
                                    <asp:ListItem Text="5" Value="5" />
                                    <asp:ListItem Text="6" Value="6" />
                                    <asp:ListItem Text="7" Value="7" />
                                    <asp:ListItem Text="8" Value="8" />
                                    <asp:ListItem Text="9" Value="9" />
                                    <asp:ListItem Text="10" Value="10" />
                                    <asp:ListItem Text="11" Value="11" />
                                </asp:DropDownList>        
                                &nbsp;inches            
                            </td>
                        </tr>
                    </table>        
                    
                    <hr />
                    
                    <div style="text-align: center;">
                        <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