📄 discuss_addpost.ascx
字号:
<%@ Control %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<%--
This skin is used both for adding and editing a post. Modify the HTML content
to modify the appearance of the page.
--%>
<community:SectionTitle id="lblSectionTitle" CssClass="Form_Title" Runat="Server" />
<br><br>
<asp:Panel id="pnlForm" Runat="Server">
<table width="100%" class="discussTable" cellpadding="0" cellspacing="1">
<tr>
<th align="left">
Post a New Message
</th>
</tr>
<tr>
<td valign="top" class="discussCell">
<table>
<tr>
<td colspan="3" align="right">
<asp:Panel id="pnlTopics" Runat="Server">
<b>Topic:</b>
<community:TopicPicker id="dropTopics" DefaultTopicText="Pick a Topic" runat="Server"/>
<asp:RequiredFieldValidator ControlToValidate="dropTopics" Text="(required)" InitialValue="-1" CssClass="Form_Field" Runat="Server" />
</asp:Panel>
</td>
</tr>
<tr>
<td align="right">
<b>Author:</b>
</td>
<td colspan="2">
<asp:Label id="lblUsername" runat="Server"/>
</td>
</tr>
<tr>
<td align="right">
<b>Subject:</b>
</td>
<td colspan="2">
<asp:TextBox id="txtTitle" Columns="40" CssClass="Form_Field" Runat="Server" />
<asp:RequiredFieldValidator ControlToValidate="txtTitle" Text="(required)" Runat="Server"/>
</td>
</tr>
<tr>
<td align="right" valign="top">
<b>Message:</b>
</td>
<td>
<community:HtmlTextBox id="txtBodyText" Width="550" Height="300" Runat="Server" />
</td>
<td valign="top">
<asp:RequiredFieldValidator ControlToValidate="txtBodyText" Text="(required)" Runat="Server"/>
</td>
</tr>
<tr>
<td valign="top">
</td>
<td>
<asp:CheckBox id="chkLocked" runat="Server"/> Do not allow replies to this post
</td>
</tr>
<tr>
<td valign="top">
</td>
<td>
<asp:Panel id="pnlModerateOptions" runat="Server">
<asp:CheckBox id="chkPinned" runat="Server"/> Pinned Post <asp:CheckBox id="chkAnnouncement" runat="Server"/> Announcement
</asp:Panel>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<asp:Button id="btnPreview" Text="Preview" CssClass="Form_Button" Runat="Server" />
<asp:Button id="btnAdd" Text="Submit" CssClass="Form_Button" Runat="Server" />
<asp:Button id="btnEdit" Text="Submit" CssClass="Form_Button" Runat="Server" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel id="pnlPreview" runat="Server">
<table width="100%" class="discussTable" cellpadding="0" cellspacing="0" border="0">
<tr>
<th align="left">
Preview Message
</th>
</tr>
<tr>
<td valign="top" class="discussCell">
<table width="100%" border="0" cellpadding="4" cellspacing="0" border="0">
<tr>
<td class="discussCellHilite">
<b><community:Title id="lblPreviewTitle" runat="Server" /></b>
</td>
</tr>
<tr>
<td align="right">
<community:DisplayTopic id="topicPreview" runat="Server"/>
</td>
</tr>
<tr>
<td class="discussCell">
<community:PostBodyText id="lblPreviewBodyText" runat="Server" />
</td>
</tr>
<tr>
<td>
<asp:Button id="btnContinue" Text="Continue" CssClass="Form_Button" Runat="Server" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -