<%@ Page Language="C#" MasterPageFile="~/Layout/Site.master" AutoEventWireup="true"
                 CodeFile="Login.aspx.cs" Inherits="Login" Title="WorkflowManager :: Login" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainPlaceHolder" Runat="Server">
    <gecko:WorkflowManagerProxy ID="WorkflowManagerProxy" runat="server">
        <Parameters>
            <asp:ControlParameter Name="Username" 
                                               ControlId="UsernameEdit" 
                                               PropertyName="Text"
                                               Type="String" Size="20" />
            <asp:ControlParameter Name="Password" 
                                               ControlId="PasswordEdit" 
                                               PropertyName="Text" 
                                               Type="String" 
                                               Size="20" />
        </Parameters>
        <Triggers>
            <gecko:EventWorkflowTrigger ControlId="LoginButton" 
                                                         EventName="Click"
                                                         WorkflowType="SampleWebsite.Workflow.LoginWorkflow, SampleWebsite.Workflow" />
        </Triggers>
    </gecko:WorkflowManagerProxy>
    
    <table>
        <tr>
            <td>
                <asp:Label ID="UsernameLabel" runat="server" 
                                 Text="Username" AssociatedControlID="UsernameEdit" />
            </td>
            <td>
                <asp:TextBox ID="UsernameEdit" runat="server" 
                                    TextMode="SingleLine" MaxLength="20" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="PasswordLabel" runat="server" 
                                 Text="Password" AssociatedControlID="PasswordEdit" />
            </td>
            <td>
                <asp:TextBox ID="PasswordEdit" runat="server" 
                                    TextMode="Password" MaxLength="20" />
            </td>
        </tr>
        <tr>
            <td ><asp:Button ID="LoginButton" runat="server" Text="Login" /></td>
            <td>&nbsp;</td>
        </tr>
    </table>
    <p>
        The test username is <b>TestUser</b> the password is <b>TestP@ssword</b>.
    </p>
</asp:Content>

Last edited May 18, 2007 at 4:28 PM by Kimoz, version 4

Comments

No comments yet.