📄 selfile.ascx
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="selfile.ascx.cs" Inherits="controls_selfile" %>
<script type="text/javascript">
function <%= UniqueID %>findserver( s)
{
s.disabled =true ;
var sel2 = document.getElementById('<%= dplFiles.ClientID %>');
sel2.disabled=true;
<%= UniqueID %>selChange(s.value,'');
}
function <%= UniqueID %>ReceiveServerData(rValue) {
//alert(rValue);
var v = eval(rValue);
var s1=document.getElementById('<%= dplDirs.ClientID %>');
s1.disabled=false;
var sel2 = document.getElementById('<%= dplFiles.ClientID %>');
sel2.disabled=false;
sel2.options.length = 0;
var newopt = document.createElement("option");
newopt.value = "<没有指定>";
newopt.innerHTML = "<没有指定>";
newopt.selected=true;
sel2.appendChild(newopt);
for (i = 0; i < v.length; i++) {
var option = document.createElement("option");
option.value = v[i].Key;
option.innerHTML = v[i].Value;
sel2.appendChild(option);
}
}
</script>
<table >
<tr>
<td>
文件夹:</td>
</tr>
<tr>
<td>
<%-- <asp:DropDownList ID="dplDirs" runat="server" Width="300" EnableViewState="false"
>
</asp:DropDownList>--%>
<select id="dplDirs" runat="server"
style=" width:300px" enableviewstate="false" >
</select>
</td>
</tr>
<tr>
<td>
文件:</td>
</tr>
<tr>
<td>
<%--<asp:DropDownList ID="dplFiles" runat="server" Width="300">
</asp:DropDownList>--%>
<select id="dplFiles" runat="server"
style=" width:300px" enableviewstate="false" >
</select>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -