📄 downloads_adddownload.ascx
字号:
<%@ import Namespace="ASPNET.StarterKit.Communities" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<%@ Control Language="C#" %>
<%--
This skin is used both for adding and editing a download file. Modify the HTML content
to modify the appearance of the page.
--%>
<asp:Label id="lblSectionTitle" CssClass="Form_Title" Runat="Server" />
<p class="Form_Description">上传文件.</p>
<community:DisplayQuota id="valQuota" Text="超出社区总配额" Runat="Server" ErrorMessage="你已超出分配给你的配额" CommunityQuotaText="社区总配额: {0:n0} KB"
CommunityQuotaUsedText="社区已用配额: {0:n0} KB" UserQuotaText="你的总配额: {0:n0} KB" UserQuotaUsedText="你已用配额: {0:n0} KB" />
<br>
<table width="500" cellpadding="3" cellspacing="0" class="Form_Table">
<tr>
<td class="Form_SectionRow"><FONT face="宋体"></FONT>
</td>
</tr>
<asp:Panel id="pnlTopics" Runat="Server">
<TR class="Form_LabelRow">
<TD class="Form_LabelText"><SPAN class="Form_LabelText">话题</SPAN>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" Runat="server" CssClass="Form_Field" Text="(required)"
InitialValue="-1" ControlToValidate="dropTopics"></asp:RequiredFieldValidator><BR>
<community:TopicPicker id="dropTopics" runat="Server"></community:TopicPicker></TD>
</TR>
</asp:Panel>
<tr>
<td class="Form_LabelRow">
文件标题
<br>
<span class="Form_HelpText">(例如: myFile.exe)</span>
<asp:RequiredFieldValidator ControlToValidate="txtDownloadTitle" Text="(required)" CssClass="Form_Field" Runat="server"
id="RequiredFieldValidator2" />
<br>
<asp:TextBox Columns="40" id="txtDownloadTitle" CssClass="Form_Field" Runat="Server" />
</td>
</tr>
<tr>
<td class="Form_LabelRow">
<span class="Form_LabelText"></span>简介
<br>
<span class="Form_HelpText"> (简介将显示于文件列表页.)</span>
<asp:RequiredFieldValidator Display="Dynamic" ControlToValidate="txtDownloadBriefDescription" Text="(required)"
CssClass="Form_Field" Runat="server" id="RequiredFieldValidator3" />
<asp:CustomValidator id="valDownloadBriefDescription" ControlToValidate="txtDownloadBriefDescription"
Text="(less than 300 characters)" CssClass="Form_Field" Runat="Server">
(简介不要超过300个字符)</asp:CustomValidator>
<br>
<asp:TextBox Columns="40" id="txtDownloadBriefDescription" CssClass="Form_Field" Runat="Server"
Rows="7" TextMode="MultiLine" />
</td>
</tr>
<tr>
<td class="Form_LabelRow">
<span class="Form_LabelText"></span>详细介绍
<br>
<span class="Form_HelpText"> (当按'详情'链接时,显示本信息.)</span>
<br>
<community:HtmlTextBox CssClass="htmlDesigner" SelectedFontSize="3" SelectedFontFace="Times New Roman"
Columns="40" id="txtDownloadFullDescription" Runat="Server" Rows="10" />
</td>
</tr>
<tr>
<td class="Form_LabelRow">
<P>文件</P>
<P>例如:
<span class="Form_HelpText"> C:\Files\myFile.exe)</span>
<community:UploadValidator id="valUpload" ControlToValidate="txtDownloadFile" Text="(required)" ErrorMessage="(required)"
CssClass="Form_Field" Runat="Server" />
<br>
<input type="file" id="txtDownloadFile" name="txtImageFile" size="38" cssclass="Form_Field"
runat="server">
</P>
</td>
</tr>
<tr>
<td class="Form_LabelRow" height="2">
</td>
</tr>
<tr>
<td class="Form_LabelRow" colspan="2" align="right">
<asp:Button id="btnAdd" Text="增加文件" CssClass="Form_Button" Runat="Server" />
<asp:Button id="btnEdit" Text="应用更新" CssClass="Form_Button" Runat="Server" />
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -