⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 downloads_adddownload.ascx

📁 一个ASP.NET下的中文内容管理和社区系统
💻 ASCX
字号:
<%@ Control %>
<%@ 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 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 + -