summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Pages/Posts/EditPost.page
blob: 591f594554684edfd86968debdd55e7cc710a548 (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
37
38
39
40
41
<com:TContent ID="Main">

<h2>Update Post</h2>

Title
<com:TRequiredFieldValidator
Display="Dynamic"
	ControlToValidate="Title"
	ErrorMessage="...is required"
	ValidationGroup="post" />
<br/>
<com:TTextBox ID="Title" Columns="70" MaxLength="256" />
<br/>

Content
<com:TRequiredFieldValidator
Display="Dynamic"
	ControlToValidate="Content"
	ErrorMessage="...is required"
	ValidationGroup="post" />
<br/>
<com:THtmlArea ID="Content" Width="450px" />
<br/>

Categories<br/>
<com:TListBox
	ID="Categories"
	SelectionMode="Multiple"
	DataTextField="Name"
	DataValueField="ID" />
<br/>

<com:TCheckBox ID="DraftMode" Text="in draft mode (the post will not be published)" />
<br/>

<com:TLinkButton
	Text="Save"
	OnClick="saveButtonClicked"
	ValidationGroup="post" />

</com:TContent>