JS是创建HTML控件的
你可以document.createElement("input") 设置type属性<script language="JavaScript">
window.onload=function(){
var input = document.createElement("input");
input.type="file";
input.id="FileUpload1";
input.width="338px";
input.visible=true;
document.body.appendChild(input)
}
</script>
你可以document.createElement("input") 设置type属性<script language="JavaScript">
window.onload=function(){
var input = document.createElement("input");
input.type="file";
input.id="FileUpload1";
input.width="338px";
input.visible=true;
document.body.appendChild(input)
}
</script>
runat="server"的服务器控件可以用js来创建的吗?我想最好用div包住上传控件,然后隐藏,在需要的时候show出来