?? downloads_adddownload.ascx
字號:
<%@ Control Language="C#" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<%@ import Namespace="ASPNET.StarterKit.Communities" %>
<%--
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">Use this form to upload files to the portal.</p>
<community:DisplayQuota id="valQuota" Text="Over community quota, please delete existing images before you continue" Runat="Server" />
<br>
<table width="500" cellpadding="3" cellspacing="0" class="Form_Table">
<tr>
<td class="Form_SectionRow">
Add File Form
</td>
</tr>
<asp:Panel id="pnlTopics" Runat="Server">
<tr class="Form_LabelRow">
<td class="Form_LabelText">
<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">
<span class="Form_LabelText">File Name</span>
<br>
<span class="Form_HelpText">(For example, myFile.exe)</span>
<asp:RequiredFieldValidator ControlToValidate="txtDownloadTitle" Text="(required)" CssClass="Form_Field" Runat="Server" />
<br />
<asp:TextBox Columns="40" id="txtDownloadTitle" CssClass="Form_Field" Runat="Server" />
</td>
</tr>
<tr>
<td class="Form_LabelRow">
<span class="Form_LabelText">File Brief Description</span>
<br>
<span class="Form_HelpText">(This information is listed on the Downloads page.)</span>
<asp:RequiredFieldValidator Display="Dynamic" ControlToValidate="txtDownloadBriefDescription" Text="(required)" CssClass="Form_Field" Runat="Server" />
<asp:CustomValidator id="valDownloadBriefDescription" ControlToValidate="txtDownloadBriefDescription" Text="(less than 300 characters)" CssClass="Form_Field" Runat="Server" />
<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">File Full Description</span>
<br>
<span class="Form_HelpText">(Users can access this information when they press the 'Read More' link.)</span>
<asp:RequiredFieldValidator ControlToValidate="txtDownloadFullDescription" Text="(required)" CssClass="Form_Field" Runat="Server" />
<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">
<span class="Form_LabelText">File</span>
<br>
<span class="Form_HelpText">(For example, 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" />
</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="Add File" CssClass="Form_Button" Runat="Server" />
<asp:Button id="btnEdit" Text="Apply Changes" CssClass="Form_Button" Runat="Server" />
</td>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -