📄 addenhanced.ascx
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddEnhanced.ascx.cs" Inherits="MySite.WebUI.Controls.FileUpload.AddEnhanced" %>
<style type="text/css">
.p9{ font-size: 9pt; font-family: 宋体 }
td {font-size: 9pt}
.tx {height: 16px; width: 30px; border-color: black black #000000; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; font-size: 9pt; background-color: #eeeeee; color: #0000FF}
.tx2 {height: 16px;border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; font-size: 9pt; color: #0000FF; border-left-color:#000000; border-right-color:#000000; border-top-color:#000000; border-bottom-color:#000000}
.bt {border-left:1px solid #C0C0C0; border-top:1px solid #C0C0C0; font-size: 9pt; border-right-width: 1; border-bottom-width: 1; height: 16px; width: 80px; background-color: #EEEEEE; cursor: hand; border-right-style:solid; border-bottom-style:solid}
.tx1 { width: 400 ;height: 20px; font-size: 9pt; border: 1px solid; border-color: black black #000000; color: #0000FF}
</style>
<script type="text/vbscript">
function addfile()
dim str
str="<table>"
if not IsNumeric (document.all.filenum.value) then document.all.filenum.value =1
for i=1 to document.all.filenum.value
str=str&"<tr><td valign='middle'>文件"&i&":</td><td><input type='file' name='file"&i&"' class='tx1' value size='20'>另保存为<input type='text' name='txtFileName"&i&"' size='10' class='tx2'><input type='checkbox' name='chkbxIsOverride"&i&"' class='txt2'>覆盖同名文件 Tag标签:<input type='text' name='txtTag"&i&"' size='20' class='tx2'>描述:<input type='text' name='txtDesciption"&i&"' size='20' class='tx2'></td></tr>"
next
window.uptd.innerHTML =str&"</table>"
end function
</script>
<form id="form1" method="post" runat="server" enctype="multipart/form-data">
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><font color="#0000ff" size="5">批量上传文件</font></div></td>
</tr>
<tr>
<td><table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordecolor="#111111" style="border-collapse: collapse">
<tr>
<td height="27" colspan="2">上传
<select name="filenum" size="1" id="filenum" onchange="addfile()">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
个文件
</td>
</tr>
<tr>
<td> <div id="uptd"> </div></td>
</tr>
<tr>
<td height="30" colspan="2" align="middle">
<!--
<input type="submit" name="button" class="bt" value="上 传">
-->
<asp:Button Runat="server" Text="开始上传" ID="UploadButton" CssClass="bt"></asp:Button>
<input type="reset" name="button" class="bt" value="重 置">
</td>
</tr>
</table></td>
</tr>
<!--
<TR>
<TD HEIGHT="50" ALIGN="middle">版权所有 2002-2003 梁无惧 <A HREF="mailto:yjlrb@21cn.com">yjlrb@21cn.com</A> <BR>
<A HREF="http://www.25cn.com">http://www.25cn.com </A>
</TD>
</TR>
-->
</table>
<p>
<asp:Literal ID="strStatus" runat="server"></asp:Literal>
</p></form>
<script type="text/vbscript">
addfile()
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -