-
Notifications
You must be signed in to change notification settings - Fork 0
/
Occupations.aspx
35 lines (31 loc) · 1.45 KB
/
Occupations.aspx
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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Occupations.aspx.cs" Inherits="Occupations" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:LinqDataSource ID="LinqDataSource1" runat="server"
ContextTypeName="MyFamilyDatabaseDataContext" EnableDelete="True"
EnableInsert="True" EnableUpdate="True" TableName="Occupations">
</asp:LinqDataSource>
<br />
<a href="./AddNewOccupation.aspx">Add New</a><asp:GridView ID="GridView1"
runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataKeyNames="OccupationID"
DataSourceID="LinqDataSource1" PageSize="50">
<Columns>
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True"
ShowSelectButton="True" />
<asp:BoundField DataField="OccupationID" HeaderText="OccupationID"
InsertVisible="False" ReadOnly="True" SortExpression="OccupationID" />
<asp:BoundField DataField="OccupationDesc" HeaderText="OccupationDesc"
SortExpression="OccupationDesc" />
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>