📄 links_addlink.ascx
字号:
<%@ Control %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<%--
This skin is used both for adding and editing a link. Modify the HTML content
to modify the appearance of the page.
--%>
<asp:Label id="lblSectionTitle" CssClass="Form_Title" Runat="Server" />
<p class="Form_Description">Use this form to add a new link.</p>
<asp:Panel id="pnlForm" runat="Server">
<table cellSpacing="0" cellPadding="3" border="0" width="400" Class="Form_Table">
<tr>
<td class="Form_SectionRow">
Add/Edit Link Form
</td>
</tr>
<td class="Form_LabelRow" valign="top">
<span class="Form_LabelText">Link Title:</span>
<span class="Form_HelpText">
<br>(Enter the name of the Web site.)</span>
<asp:RequiredFieldValidator ControlToValidate="txtTitle" ErrorMessage="(required)" Display="Dynamic" runat="server"/>
<br/>
<asp:TextBox id="txtTitle" size="25" maxLength=100 runat="server"/>
</td>
</tr>
<asp:Panel id="pnlTopics" Runat="Server">
<tr>
<td class="Form_LabelRow">
<span class="Form_LabelText">Topic:</span>
<asp:RequiredFieldValidator ControlToValidate="dropTopics" Text="(required)" InitialValue="-1" CssClass="Form_Field" Runat="Server" />
<br />
<community:TopicPicker id="dropTopics" Runat="Server" />
</td>
</tr>
</asp:Panel>
<tr>
<td class="Form_LabelRow" valign="top">
<span class="Form_LabelText">Url:</span>
<span class="Form_HelpText">
<br>(For example, http://www.links.com)</span>
<asp:RequiredFieldValidator ControlToValidate="txtUrl" ErrorMessage="(required)" Display="Dynamic" runat="server"/>
<br/>
<asp:TextBox id="txtUrl" size="40" maxLength=255 runat="server" Text="http://"/><br>
</td>
</tr>
<tr>
<td class="Form_LabelRow" valign="top">
<span class="Form_LabelText">Description:</span>
<span class="Form_HelpText">
<br>(This information is listed on the Links page.)</span>
<asp:RequiredFieldValidator ControlToValidate="txtDescription" ErrorMessage="(required)" Display="Dynamic" runat="server"/>
<community:LengthValidator MaxLength="500" ControlToValidate="txtDescription" Text="(less than 500 characters)" CssClass="Form_Field" Runat="Server" />
<br/>
<asp:TextBox id="txtDescription" TextMode="MultiLine" Rows="3" Cols="40" runat="server"/>
</td>
</tr>
<tr>
<td colspan=3 align="right" class="Form_LabelRow">
<asp:Button id="btnPreview" Text="Preview" CssClass="Form_Button" Runat="server"/>
<asp:Button id="btnAdd" Text="Add Link" CssClass="Form_Button" Runat="server"/>
<asp:Button id="btnEdit" Text="Apply Changes" CssClass="Form_Button" Runat="server"/>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel id="pnlPreview" Runat="Server">
<div align="right">
<community:DisplayTopic id="previewTopic" runat="Server" />
</div>
<community:LinkTitle id="previewLinkTitle" runat="server" />
<p>
<community:BriefDescription id="previewDescription" runat="server" />
</p>
<asp:Button id="btnContinue" Text="Finish Preview" Runat="Server" />
</asp:Panel>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -