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

A Task Management System using Three Layer Architecture

,
Rate me:
Please Sign up or sign in to vote.
4.27/5 (15 votes)
9 Apr 2010CPOL5 min read 64.6K   3.5K   54  
This describes a three Layer Architecture with examples
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage.master" MaintainScrollPositionOnPostback="true" CodeFile="ProjectDetails.aspx.cs" Inherits="UI_ProjectDetails" %>
<%@ MasterType VirtualPath="~/Master/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <%--<script type="text/javascript" src="../../Javascript/PageBackJScript.js">
    </script>--%>
    <div>
    <asp:Label id="Label1" runat="server" Width="148px" Text="Project Details :" Font-Underline="False" Font-Size="Medium" Font-Bold="True"></asp:Label><HR />

        <table style="width: 600px">
            <tr>
                <td style="width: 148px">
                    <asp:Label ID="Label2" runat="server" Text="Project Id"></asp:Label></td>
                <td style="width: 21px">
                    <asp:Label ID="Label10" runat="server" Font-Bold="True" Font-Size="Large" Text=":"
                        Width="13px"></asp:Label></td>
                <td style="width: 431px">
                    <asp:TextBox ID="projectIdTextBox" runat="server" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 148px">
                    <asp:Label ID="Label3" runat="server" Text="Project Name"></asp:Label></td>
                <td style="width: 21px">
                    <asp:Label ID="Label11" runat="server" Font-Bold="True" Font-Size="Large" Text=":"
                        Width="13px"></asp:Label></td>
                <td style="width: 431pxpx">
                    <asp:TextBox ID="projectNameTextBox" runat="server" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 148px" valign="top">
                    <asp:Label ID="Label4" runat="server" Text="Project Description"></asp:Label></td>
                <td style="width: 21px" valign="top">
                    <asp:Label ID="Label12" runat="server" Font-Bold="True" Font-Size="Large" Text=":"
                        Width="13px"></asp:Label></td>
                <td style="width: 431px">
                    <asp:TextBox ID="projectDescriptionTextBox" runat="server" Height="81px" TextMode="MultiLine"
                        Width="272px" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 148px">
                    <asp:Label ID="Label5" runat="server" Text="Project Creation Date" Width="145px"></asp:Label></td>
                <td style="width: 21px">
                    <asp:Label ID="Label13" runat="server" Font-Bold="True" Font-Size="Large" Text=":"
                        Width="13px"></asp:Label></td>
                <td style="width: 431px">
                    <asp:TextBox ID="creationDateTextBox" runat="server" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 148px">
                    <asp:Label ID="Label6" runat="server" Text="Project End Date"></asp:Label></td>
                <td style="width: 21px">
                    <asp:Label ID="Label14" runat="server" Font-Bold="True" Font-Size="Large" Text=":"
                        Width="13px"></asp:Label></td>
                <td style="width: 431px">
                    <asp:TextBox ID="endDateTextBox" runat="server" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 148px" valign="top">
                    <asp:Label ID="Label8" runat="server" Text="Project Admin"></asp:Label></td>
                <td style="width: 21px" valign="top">
                    <asp:Label ID="Label15" runat="server" Font-Bold="True" Font-Size="Large" Text=":"
                        Width="13px"></asp:Label></td>
                <td style="width: 431px" align="left">
                    <asp:TextBox ID="projectAdminTextBox" runat="server" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 148px; height: 22px" valign="top">
                    <asp:Label ID="Label7" runat="server" Text="Project Users"></asp:Label></td>
                <td style="width: 21px; height: 22px" valign="top">
                    <asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Size="Large" Text=":"
                        Width="13px"></asp:Label></td>
                <td style="height: 22px; width: 431px;">
                </td>
            </tr>
             <tr>
                 <td colspan="3">
        <asp:GridView ID="projectUserGridView" runat="server" Width="332px" CellPadding="4" ForeColor="#333333" GridLines="None" DataSourceID="projectUserObjectDataSource">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
                     <asp:ObjectDataSource ID="projectUserObjectDataSource" runat="server" SelectMethod="SelectUserOfProject"
                         TypeName="ProjectBLL">
                         <SelectParameters>
                             <asp:QueryStringParameter Name="projectId" QueryStringField="projectId" Type="String" />
                         </SelectParameters>
                     </asp:ObjectDataSource>
                 </td>
            </tr>
            <tr>
                <td style="width: 148px">
                    <asp:Label ID="Label9" runat="server" Text="Project Staus"></asp:Label></td>
                <td style="width: 21px">
                    <asp:Label ID="Label17" runat="server" Font-Bold="True" Font-Size="Large" Text=":"
                        Width="13px"></asp:Label></td>
                <td style="width: 431px">
                    <asp:TextBox ID="projectStatusTextBox" runat="server" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 148px">
                </td>
                <td style="width: 21px">
                </td>
                <td style="width: 431px">
                </td>
            </tr>
            <tr>
                <td align="left" colspan="3">
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    <asp:Button ID="endProjectButton" runat="server" Text="End Project" Width="147px" /></td>
            </tr>
            <tr>
                <td style="width: 148px">
                </td>
                <td style="width: 21px">
                </td>
                <td style="width: 431px">
                </td>
            </tr>
            <tr>
                <td style="width: 148px">
                </td>
                <td style="width: 21px">
                </td>
                <td style="width: 431px">
                </td>
            </tr>
        </table>
    </div>
  </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
Software Developer Waveroamer Solutions, Advanced ERP(BD) LTD
Bangladesh Bangladesh
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Written By
Software Developer WaveRoamer Solution Ltd
Bangladesh Bangladesh
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions