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

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

Rate me:
Please Sign up or sign in to vote.
4.76/5 (16 votes)
22 Jun 2003CPOL16 min read 119.4K   2.4K   47  
An account of my experience in learning to develop in the .NET environment.
<%@ 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)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions