Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads
 
Add your own
alternative version

Three Tier Code Generator For ASP.NET

, 8 Jul 2005
Generates three tier code for ASP.NET.
Demo.zip
Demo
ThreeTierDemo
Admin
Components
Business
Data
Interface
Parent
Web
CSS
Errors
Global.asax
Images
bg_navigation.gif
delete.gif
new.gif
top.jpg
update.gif
Login
ThreeTierDemo.csproj.webinfo
UserControls
Users
ThreeTierDemoVB
Admin
Components
Business
Data
Interface
Parent
Web
CSS
Errors
Global.asax
Images
bg_navigation.gif
delete.gif
new.gif
top.jpg
update.gif
ThreeTierDemoVB.vbproj.webinfo
UserControls
Users
SourceCode.zip
SourceCode
Csharp
Components
Business
Data
Interface
Parent
Web
CSS
Errors
Images
bg_navigation.gif
delete.gif
logobanner.gif
new.gif
top.jpg
update.gif
Login
UserControls
Scripts
ThreeTierGenerator
Css
Language
VB
Components
Business
Data
Interface
Parent
Web
CSS
Errors
Images
bg_navigation.gif
delete.gif
new.gif
top.jpg
update.gif
UserControls
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="Company.ThreeTierDemo.User.DefaultUsers" %>
<%@ Register TagPrefix="Site" TagName="Header" Src="../UserControls/Header.ascx"%>
<%@ Register TagPrefix="Site" TagName="Footer" Src="../UserControls/Footer.ascx"%>
<!--
//**==========================================================================================
//**
//** FILE  : Default.aspx
//** Author: Stevan Rodrigues
//**
//**==========================================================================================
//**
//** (c) The contents of this file , and of any file or document derived from it , are copyright 
//** to Webchamps . Unlicensed alteration, change or copying in any form, 
//** whether written, by photocopy, by print or by any other methods of reproduction is 
//** strictly prohibited.
//**
//**==========================================================================================
--> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<Title>User</Title>
<link rel='stylesheet' type='text/css' href='../CSS/Site.css'>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body>
<Site:Header Id="Header" PageTitle="User" Runat="Server"/><br>
<asp:Label id="PageMessage" Runat="Server"/><br>
<asp:Label id="ErrorMessage" Runat="Server"/>

	<form Runat="Server" ID="Users">
	<table>
	<tr>
		<td  align='center' class='defaultHeaderCells'>Users</TD>
	<tr>
		<td colspan='1' align='center' class='separatorCells'>&nbsp;</TD>
	</tr>

	<tr><td>
		<asp:DataGrid ID="MsDataGrid" AllowPaging="True" PageSize="10" PagerStyle-Mode="NumericPages" DataKeyField="UserId" AutoGenerateColumns="False" AllowSorting="True" HeaderStyle-CssClass="GridHeader" PagerStyle-CssClass="GridPager" FooterStyle-CssClass="GridFooter" SelectedItemStyle-CssClass="GridSelectedItem" AlternatingItemStyle-CssClass="GridAlternatingItem" ItemStyle-CssClass="GridItem" CssClass="Grid" CellPadding="7" Runat="Server">
		<Columns>
		<asp:BoundColumn HeaderText="ID" DataField="UserId" SortExpression="UserId" ReadOnly="True"/>
		<asp:TemplateColumn SortExpression="FirstName" HeaderText="First Name">
		<ItemTemplate>
			<%# DataBinder.Eval(Container.DataItem, "FirstName" ) %>
		</ItemTemplate>
		</asp:TemplateColumn>
		<asp:TemplateColumn SortExpression="LastName" HeaderText="Last Name">
		<ItemTemplate>
			<%# DataBinder.Eval(Container.DataItem, "LastName" ) %>
		</ItemTemplate>
		</asp:TemplateColumn>
		<asp:TemplateColumn SortExpression="Email" HeaderText="Email">
		<ItemTemplate>
			<%# DataBinder.Eval(Container.DataItem, "Email" ) %>
		</ItemTemplate>
		</asp:TemplateColumn>
		<asp:TemplateColumn SortExpression="Comments" HeaderText="Comments">
		<ItemTemplate>
			<%# DataBinder.Eval(Container.DataItem, "Comments" ) %>
		</ItemTemplate>
		</asp:TemplateColumn>

		<asp:TemplateColumn>
			<ItemTemplate>
			<asp:LinkButton id="DeleteButton" runat="server" CommandName="Delete">
			<img src='../images/delete.gif' border='0' alt='Delete'></asp:LinkButton>
			</ItemTemplate>
		</asp:TemplateColumn>
		<asp:HyperlinkColumn DataNavigateURLField="UserId" DataNavigateURLFormatString="UpdateUsers.aspx?UserId={0}" Text="<img src='../images/update.gif' border='0' alt='Edit'>" />
		</Columns>
		</asp:DataGrid>
	</td></tr>
	<tr>
	<td align=right>
	<asp:HyperLink id="NewLink" runat="server" NavigateUrl="AddUsers.aspx"><img src='../images/new.gif' border='0' alt='New...'></asp:HyperLink></td>
		</tr>
		</table>
		</form>

<Site:Footer Id="Footer" Runat="Server"/>
</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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Stevan Rodrigues
Software Developer (Senior)
Australia Australia
Stevan is a Microsoft Certified Solutions Developer in .Net Architecture (MCSD.Net Early Achiever – one among the first 2500 worldwide), Microsoft Certified Application Developer in .Net – MCAD.Net (Charter Member - one among the first 5000 developers worldwide).

| Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 9 Jul 2005
Article Copyright 2005 by Stevan Rodrigues
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid