Click here to Skip to main content
15,881,898 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.2K   3.5K   54  
This describes a three Layer Architecture with examples
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage.master" MaintainScrollPositionOnPostback="true" CodeFile="CreateUser.aspx.cs" Inherits="UI_CreateUser" %>
<%@ MasterType VirtualPath="~/Master/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <%--<script type="text/javascript" src="../../Javascript/PageBackJScript.js">
    </script>--%>
    <div>
    <TABLE><TBODY><TR><TD align=center colSpan=2><DIV><asp:TextBox style="OVERFLOW: visible" id="errormsgTextBox" runat="server" BackColor="Transparent" Width="407px" TextMode="MultiLine" ReadOnly="True" BorderStyle="None"></asp:TextBox> 
</DIV></TD></TR><TR><TD 
style="WIDTH: 100px; HEIGHT: 24px" align=right><asp:Label id="Label1" runat="server" Width="86px" Font-Size="Medium" Font-Bold="True" Text="Employee Id"></asp:Label> 
</TD><TD style="WIDTH: 200px; HEIGHT: 24px"><asp:DropDownList id="userIdDropDownList" tabIndex=3 runat="server" Width="168px" Font-Size="Small" DataSourceID="userObjectDataSource" DataTextField="EmployeeId" DataValueField="EmployeeId">
    </asp:DropDownList> </TD></TR><TR><TD 
style="WIDTH: 100px" align=right><asp:Label id="Label2" runat="server" Width="67px" Font-Size="Medium" Font-Bold="True" Text="Password"></asp:Label> 
</TD><TD style="WIDTH: 200px"><asp:TextBox id="passwordTextBox" tabIndex=4 runat="server" Font-Size="Small" TextMode="Password"></asp:TextBox> 
</TD></TR><TR><TD align=center colSpan=2>
    &nbsp;<asp:Button ID="createUserButton" runat="server" Text="Create User" Width="135px" OnClick="createUserButton_Click" /></TD></TR><TR><TD style="HEIGHT: 192px" 
align=left colSpan=2 valign="top">
        &nbsp; &nbsp;&nbsp;
        <asp:GridView ID="GridView1" runat="server" DataSourceID="userInoObjectDataSource" CellPadding="4" ForeColor="#333333" GridLines="None"
           >
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <EditRowStyle BackColor="#999999" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
    </TD></TR></TBODY></TABLE>
    </div>
        &nbsp;
        <asp:ObjectDataSource ID="userObjectDataSource" runat="server" SelectMethod="SelectAllEmployeeId"
            TypeName="EmployeeBLL"></asp:ObjectDataSource>
        <asp:ObjectDataSource ID="userInoObjectDataSource" runat="server" SelectMethod="SelectAllUserData"
            TypeName="EmployeeBLL"></asp:ObjectDataSource>
</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