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

State Machine Complier And Asp.net

Rate me:
Please Sign up or sign in to vote.
4.56/5 (4 votes)
20 Oct 2008CPOL4 min read 55.5K   307   31  
This article demonstrate the implementation of State Machine Compiler in .NET. This is small proof of concept for developing state machine workflow activity.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CarDashboard.aspx.cs" Inherits="CarDashboard" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table border=1>
                <tr bordercolor=1>
                    <td colspan="3" align="center" bordercolor=1 >
                        <h3>
                            <strong>Car Workflow Dashboard</strong></h3>
                    </td>
                </tr>
                <tr>
                    <td bordercolor=1>
                        <asp:GridView ID="gvCar" runat="server" AutoGenerateColumns="False" CellPadding="4"
                            ForeColor="#333333" GridLines="None">
                            <Columns>
                                <asp:TemplateField HeaderText="ID">
                                    <ItemTemplate>
                                        <asp:LinkButton runat="server" Text='<%#Eval("Car_ID") %>' ID="lnkCarID" PostBackUrl='<%#ConstructQueryString(DataBinder.Eval(Container.DataItem, "State_Page_URL"),DataBinder.Eval(Container.DataItem, "Car_ID"),DataBinder.Eval(Container.DataItem, "Current_State_ID")) %>'></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Current State Name">
                                    <ItemTemplate>
                                        <%#Eval("Current_State")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Previous State Name">
                                    <ItemTemplate>
                                        <%#Eval("Previous_State")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Customer ID">
                                    <ItemTemplate>
                                        <%#Eval("Created_By_ID")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#EFF3FB" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td bordercolor=1 align=center >Click on Car ID to perform workflow activity.
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>

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
Technical Lead
Australia Australia
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

Comments and Discussions