summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Pages/Posts/NewPost.page
blob: a49188f69c058549db9a35764670c13f0d28cd2c (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>Write a New 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>