summaryrefslogtreecommitdiff
path: root/demos/sqlmap/protected/pages/Sample/crud2.page
blob: 4d34e873f4f9bd88f4ef141721facb946b66371d (plain)
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
<!doctype html public "-//W3C//DTD XHTML 1.0 Strict//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
	
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<title>Person</title>
</head>

<body>

<com:TForm>
	<h1>Person List</h1>
	<com:TDataGrid id="personList" 
			DataKeyField="ID"
			AutoGenerateColumns="False"
			OnEditCommand="editPerson"
			OnUpdateCommand="updatePerson"
			OnCancelCommand="refreshList"
			OnDeleteCommand="deletePerson">
		<com:TBoundColumn DataField="FirstName" HeaderText="First Name" />
		<com:TBoundColumn DataField="LastName" HeaderText="Last Name" />
		<com:TBoundColumn DataField="HeightInMeters" HeaderText="Height" />
		<com:TBoundColumn DataField="WeightInKilograms" HeaderText="Weight" />

		<com:TEditCommandColumn
				HeaderText="Edit"
				UpdateText="Save" />
		<com:TButtonColumn
				HeaderText="Delete"
				Text="Delete"
				CommandName="delete"/>
	</com:TDataGrid>
	<com:TButton Text="Add" OnClick="addNewPerson" />
</com:TForm>
</body>
</html>