Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

SWAT - A simple Web-based Anomalies Tracker - Part 3

, 22 Jun 2003 CPOL
An account of my experience in learning to develop in the .NET environment.
swatpart3_source.zip
Toolbar_Bugs_hover.gif
Toolbar_Help.gif
Toolbar_Help_hover.gif
Toolbar_Home.gif
Toolbar_Home_hover.gif
Toolbar_Logout.gif
Toolbar_Logout_hover.gif
Toolbar_Report.gif
Toolbar_Report_hover.gif
Toolbar_System.gif
Toolbar_System_hover.gif
Global.asax
swat.gif
Swat.csproj.webinfo
Swat.vsdisco
Swat_Bugs.gif
Swat_Modules.gif
Swat_Projects.gif
Swat_Users.gif
SwatLogon.gif
Toolbar_Admin.gif
Toolbar_Admin_hover.gif
Toolbar_Analyze.gif
Toolbar_Analyze_hover.gif
Toolbar_Background.gif
Toolbar_Bugs.gif
<%@ Page language="c#" Codebehind="SwatAdmin.aspx.cs" AutoEventWireup="false" Inherits="Swat.SwatAdmin" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>SwatAdmin</title>
		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="SwatAdmin" method="post" runat="server">
			<asp:imagebutton id="btnEditUsers" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 40px" runat="server" ImageUrl="file:///C:\Inetpub\wwwroot\Swat\Swat_Users.gif" Height="32px" Width="100px" BorderStyle="Outset"></asp:imagebutton>
			<asp:imagebutton id="btnEditProjects" style="Z-INDEX: 102; LEFT: 112px; POSITION: absolute; TOP: 40px" runat="server" ImageUrl="file:///C:\Inetpub\wwwroot\Swat\Swat_Projects.gif" Height="32px" Width="100px" BorderStyle="Outset"></asp:imagebutton>
			<asp:imagebutton id="btnEditModules" style="Z-INDEX: 103; LEFT: 216px; POSITION: absolute; TOP: 40px" runat="server" ImageUrl="file:///C:\Inetpub\wwwroot\Swat\Swat_Modules.gif" Height="32px" Width="100px" BorderStyle="Outset"></asp:imagebutton>
			<asp:imagebutton id="btnEditBugs" style="Z-INDEX: 104; LEFT: 320px; POSITION: absolute; TOP: 40px" runat="server" ImageUrl="file:///C:\Inetpub\wwwroot\Swat\Swat_Bugs.gif" Height="32px" Width="100px" BorderStyle="Outset"></asp:imagebutton>
			<asp:datalist id="DataList1" style="Z-INDEX: 100; LEFT: 8px; POSITION: absolute; TOP: 80px" runat="server" BackColor="Transparent" BorderStyle="Ridge" Width="418px" Height="104px" Font-Names="Microsoft Sans Serif" Font-Size="X-Small" BorderColor="#E7E7FF" CellPadding="3" GridLines="Horizontal" BorderWidth="0px" RepeatColumns="1" HorizontalAlign="Left" CellSpacing="1" RepeatLayout="Flow">
				<SelectedItemStyle Font-Size="Small" Font-Names="Arial" Font-Bold="True" Wrap="False" HorizontalAlign="Left" BorderWidth="1px" ForeColor="Black" BorderStyle="Solid" BorderColor="#003399" Width="418px" VerticalAlign="Middle" BackColor="MediumTurquoise"></SelectedItemStyle>
				<HeaderTemplate>
					Name
				</HeaderTemplate>
				<EditItemStyle Font-Size="Small" Font-Names="Arial" Wrap="False" HorizontalAlign="Left" BorderWidth="1px" BorderStyle="Solid" BorderColor="#003399" Width="418px" VerticalAlign="Middle" BackColor="Transparent"></EditItemStyle>
				<SelectedItemTemplate>
					<asp:LinkButton id="lnkEditItem" runat="server" Text="Edit" CommandName="EditItem"></asp:LinkButton>
					<asp:LinkButton id="lnkDeleteItem" runat="server" Text="Delete" CommandName="DeleteItem"></asp:LinkButton>
					<asp:Label id=Label1 runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "itemname") %>'>
					</asp:Label>
				</SelectedItemTemplate>
				<AlternatingItemStyle Font-Size="Small" Font-Names="Arial" Wrap="False" HorizontalAlign="Left" BorderWidth="1px" BorderStyle="Solid" BorderColor="#003399" Width="418px" VerticalAlign="Middle" BackColor="Transparent"></AlternatingItemStyle>
				<SeparatorStyle Font-Size="Small" Font-Names="Arial" Wrap="False" HorizontalAlign="Left" BorderWidth="1px" BorderStyle="Solid" BorderColor="#003399" Width="418px" VerticalAlign="Middle"></SeparatorStyle>
				<FooterTemplate>
					<asp:Button id="btnPrev" runat="server" Text="<<" CommandName="Prev"></asp:Button>
					<asp:DropDownList id="ddlSelProj" runat="server" Width="80px" AutoPostBack="true" DataTextField="itemname" DataValueField="id"></asp:DropDownList>
					<asp:Button id="btnAddNew" runat="server" Text="Add New" CommandName="AddNew"></asp:Button>
					<asp:Button id="btnNext" runat="server" Text=">>" CommandName="Next"></asp:Button>
				</FooterTemplate>
				<ItemStyle Font-Size="Small" Font-Names="Arial" Wrap="False" HorizontalAlign="Left" BorderWidth="1px" ForeColor="Black" BorderStyle="Solid" BorderColor="#003399" Width="418px" VerticalAlign="Middle" BackColor="Transparent"></ItemStyle>
				<ItemTemplate>
					<asp:Label ID=lblItemID runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "id") %>'>
					</asp:Label>
					<asp:LinkButton id="lnkItem" runat="server" CommandName="SelectItem" Text='<%# DataBinder.Eval(Container.DataItem, "itemname") %>'>
					</asp:LinkButton>
				</ItemTemplate>
				<FooterStyle Font-Size="Small" Font-Names="Arial" Wrap="False" HorizontalAlign="Left" Height="12px" BorderWidth="1px" ForeColor="Black" BorderStyle="Solid" BorderColor="#003399" Width="418px" VerticalAlign="Middle" BackColor="Turquoise"></FooterStyle>
				<HeaderStyle Font-Size="Small" Font-Names="Arial" Font-Bold="True" Wrap="False" HorizontalAlign="Center" Height="12px" BorderWidth="1px" BorderStyle="Solid" BorderColor="#003399" Width="418px" VerticalAlign="Middle" BackColor="Turquoise"></HeaderStyle>
				<EditItemTemplate>
					<asp:LinkButton id="lnkEditUpdate" runat="server" Text="Update" CommandName="UpdateItem"></asp:LinkButton>
					<asp:LinkButton id="lnkEditCancel" runat="server" Text="Cancel" CommandName="CancelEdit"></asp:LinkButton>
					<asp:TextBox id=txtItemName Width="60%" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "itemname") %>'>
					</asp:TextBox>
				</EditItemTemplate>
			</asp:datalist>
			<asp:label id="lblPassword" style="Z-INDEX: 102; LEFT: 440px; POSITION: absolute; TOP: 40px" runat="server" Height="32px" Width="152px" BorderStyle="Groove" BackColor="Transparent" Font-Size="X-Small" Font-Names="Microsoft Sans Serif">Password</asp:label><asp:textbox id="txtPassword" style="Z-INDEX: 103; LEFT: 440px; POSITION: absolute; TOP: 72px" runat="server" Height="32px" Width="152px" Font-Size="Small" Font-Names="Arial"></asp:textbox><asp:label id="lblRole" style="Z-INDEX: 104; LEFT: 440px; POSITION: absolute; TOP: 112px" runat="server" Height="32px" Width="96px" BorderStyle="Groove" BackColor="Transparent" Font-Size="X-Small" Font-Names="Microsoft Sans Serif">Role(s)</asp:label><asp:checkbox id="chkDeveloper" style="Z-INDEX: 105; LEFT: 440px; POSITION: absolute; TOP: 144px" runat="server" Text="Developer" Font-Size="X-Small" Font-Names="Microsoft Sans Serif"></asp:checkbox><asp:checkbox id="chkManager" style="Z-INDEX: 106; LEFT: 440px; POSITION: absolute; TOP: 168px" runat="server" Text="Manager" Font-Size="X-Small" Font-Names="Microsoft Sans Serif"></asp:checkbox><asp:checkbox id="chkAdministrator" style="Z-INDEX: 107; LEFT: 440px; POSITION: absolute; TOP: 192px" runat="server" Text="Administrator" Font-Size="X-Small" Font-Names="Microsoft Sans Serif"></asp:checkbox><asp:label id="lblError" style="Z-INDEX: 111; LEFT: 112px; POSITION: absolute; TOP: 8px" runat="server" Width="840px" EnableViewState="False"></asp:label></form>
		</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)

Share

About the Author

Al Alberto
Software Developer (Senior)
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141030.1 | Last Updated 23 Jun 2003
Article Copyright 2003 by Al Alberto
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid