-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInMemoryAdmin.aspx
More file actions
184 lines (176 loc) · 7.41 KB
/
Copy pathInMemoryAdmin.aspx
File metadata and controls
184 lines (176 loc) · 7.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<%@ Page Language="C#" MasterPageFile="~/Masterpages/Site.master" AutoEventWireup="true" ValidateRequest="false" EnableEventValidation="false"
CodeFile="InMemoryAdmin.aspx.cs" Inherits="ANAM.Web.InMemoryAdmin" Title="Alameda Naval Air Museum - Admin - InMemory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" Runat="Server">
<script language="javascript" type="text/javascript">
function doOnRowMouseOver(o) {
with (o.style) {
cursor = 'pointer';
textDecoration = 'none';
backgroundColor = '#B5F7E4';
}
}
function doOnRowMouseOut(o) {
with (o.style) {
textDecoration = 'none';
backgroundColor = '#FFFFFF';
}
}
</script>
<style type="text/css">
td {
border-color: #ddd;
}
.grid-row td {
padding: 2px 4px;
}
.grid-row td a {
outline-style: none;
}
.grid-column-centered {
text-align: center;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMain" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:LinqDataSource ID="LinqDataSource1" runat="server" TableName="ANAM_Memorials" ContextTypeName="MemorialDataContext">
</asp:LinqDataSource>
<asp:LinqDataSource ID="LinqDataSource2" runat="server" TableName="ANAM_Memorials" ContextTypeName="MemorialDataContext"
EnableInsert="True" EnableUpdate="True" AutoGenerateWhereClause="True">
<WhereParameters>
<asp:ControlParameter ControlID="GridView1" Name="Id" PropertyName="SelectedDataKey.Values[0]" />
</WhereParameters>
</asp:LinqDataSource>
<div style="padding:0.25em;">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" Width="100%" DataSourceID="LinqDataSource1" AutoGenerateColumns="false" DataKeyNames="Id"
GridLines="Both" AllowPaging="true" PageSize="15" AllowSorting="true"
OnRowDataBound="onGridRowDataBound" OnPageIndexChanged="onGridPageIndexChanged">
<HeaderStyle BackColor="Navy" ForeColor="White" />
<PagerSettings Mode="NumericFirstLast" />
<PagerStyle Font-Bold="true" />
<RowStyle CssClass="grid-row" />
<Columns>
<asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True" SortExpression="Id" ItemStyle-CssClass="grid-column-centered" />
<asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
<asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
<asp:BoundField DataField="Rank" HeaderText="Rank" SortExpression="Rank" />
<asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" />
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div style="padding:0.25em;">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:FormView ID="FormView1" runat="server" DataSourceID="LinqDataSource2" AllowPaging="false" DataKeyNames="Id" Width="100%">
<EditItemTemplate>
<table width="98%">
<tr>
<td><b>Id</b></td>
<td><b>Rank</b></td>
<td><b>LastName</b></td>
<td><b>FirstName</b></td>
<td><b>Status</b></td>
</tr>
<tr>
<td><asp:Label runat="server" Text='<%# Eval("Id") %>' /></td>
<td><asp:TextBox ID="RankTextBox" runat="server" Text='<%# Bind("Rank") %>' Columns="50" MaxLength="50" /></td>
<td><asp:TextBox ID="LastNameTextBox" runat="server" Text='<%# Bind("LastName") %>' Columns="50" MaxLength="50" /></td>
<td><asp:TextBox ID="FirstNameTextBox" runat="server" Text='<%# Bind("FirstName") %>' Columns="50" MaxLength="50" /></td>
<td><asp:TextBox ID="StatusTextBox" runat="server" Text='<%# Bind("Status") %>' Columns="50" MaxLength="50" /></td>
</tr>
<tr>
<td>Link</td>
<td colspan="4"><asp:TextBox ID="LinkTextBox" runat="server" Text='<%# Bind("Link") %>' Width="52em" Columns="150" MaxLength="150" /></td>
</tr>
</tr>
<td colspan="5"><b>Details</b></td>
</tr>
<tr>
<td colspan="5">
<asp:TextBox ID="DetailsTextBox" runat="server" Text='<%# Bind("Details") %>' TextMode="MultiLine" Rows="10" Columns="90" Width="98%" />
</td>
</tr>
</table>
<div>
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />
<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" />
</div>
</EditItemTemplate>
<InsertItemTemplate>
<table width="98%">
<tr>
<td><b>Rank</b></td>
<td><b>LastName</b></td>
<td><b>FirstName</b></td>
<td><b>Status</b></td>
</tr>
<tr>
<td><asp:TextBox ID="RankTextBox" runat="server" Text='<%# Bind("Rank") %>' Columns="50" MaxLength="50" /></td>
<td><asp:TextBox ID="LastNameTextBox" runat="server" Text='<%# Bind("LastName") %>' Columns="50" MaxLength="50" /></td>
<td><asp:TextBox ID="FirstNameTextBox" runat="server" Text='<%# Bind("FirstName") %>' Columns="50" MaxLength="50" /></td>
<td><asp:TextBox ID="StatusTextBox" runat="server" Text='<%# Bind("Status") %>' Columns="50" MaxLength="50" /></td>
</tr>
<tr>
<td><b>Link</b></td>
<td colspan="3"><asp:TextBox ID="LinkTextBox" runat="server" Text='<%# Bind("Link") %>' Columns="150" MaxLength="150" /></td>
</tr>
<td colspan="4"><b>Details</b></td>
</tr>
<tr>
<td colspan="4">
<asp:TextBox ID="DetailsTextBox" runat="server" Text='<%# Bind("Details") %>' TextMode="MultiLine" Rows="10" Columns="90" Width="98%" />
</td>
</tr>
</table>
<div>
<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" />
<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" />
</div>
</InsertItemTemplate>
<ItemTemplate>
<table width="98%">
<tr>
<td><b>Id</b></td>
<td><b>Rank</b></td>
<td><b>LastName</b></td>
<td><b>FirstName</b></td>
<td><b>Status</b></td>
</tr>
<tr>
<td><asp:Label runat="server" Text='<%# Eval("Id") %>' /></td>
<td><asp:Label runat="server" Text='<%# Eval("Rank") %>' /></td>
<td><asp:Label runat="server" Text='<%# Eval("LastName") %>' /></td>
<td><asp:Label runat="server" Text='<%# Eval("FirstName") %>' /></td>
<td><asp:Label runat="server" Text='<%# Eval("Status") %>' /></td>
</tr>
<tr>
<td><b>Link</b></td>
<td colspan="4"><asp:Label runat="server" Text='<%# Eval("Link") %>' /></td>
</tr>
<td colspan="5"><b>Details</b></td>
</tr>
<tr>
<td colspan="5">
<asp:Label runat="server" Text='<%# Eval("Details") %>' />
</td>
</tr>
</table>
<div>
<asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" />
<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New" Text="New" />
</div>
</ItemTemplate>
</asp:FormView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpJavascript" Runat="Server">
</asp:Content>