zoukankan
html css js c++ java
不刷新动态添加FileUpload
页面
<
tr
>
<
td
align
="right"
style
="height: 48px"
>
<
asp:Label
ID
="Label8"
runat
="server"
Text
="附 件:"
Width
="100%"
></
asp:Label
></
td
>
<
td
align
="left"
colspan
="3"
style
="height: 48px"
>
<
div
id
="MyFile"
style
="100%"
>
<
asp:FileUpload
ID
="FileUpload1"
runat
="server"
Width
="80%"
/>
</
div
>
<
input
id
="btn_AddFile"
type
="button"
runat
="server"
value
="添加附件"
/>
</
td
>
</
tr
>
.cs中
protected
void
Page_Load(
object
sender, EventArgs e)
...
{
//
注册添加文件脚本
this
.Page.ClientScript.RegisterStartupScript(
this
.GetType(),
"
MyScript
"
,
"
function addFile(btn)
"
+
"
{ var str = '<br><INPUT type="file" style="80%" NAME="File">';
"
+
"
document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str);
"
+
"
btn.value='继续添加附件'
"
+
"
}
"
,
true
);
btn_AddFile.Attributes.Add(
"
onClick
"
,
"
addFile(this)
"
);
}
查看全文
相关阅读:
Fluent UDF【1】:简介
CFD使用者应当了解的一些事情
关于CAE的那点儿破事儿【二】
sau交流学习社区--看小说的lovebook一个无线端BS应用
sau交流学习社区--songEagle开发系列:Vue.js + Koa.js项目中使用JWT认证
mysql数据库NO CONNECTION问题分析以及解决方案
sau交流学习社区第三方登陆github--oauth来实现用户登录
微信小程序初体验,入门练手项目--通讯录,部署上线(二)
快速新建简单的koa2后端服务
docker初体验,搭建自用的gitlab服务
原文地址:https://www.cnblogs.com/juan/p/1430701.html
最新文章
Android复制Assets目录下的文件到指定目录
Android中在sdcard上创建文件夹
android raw与assets区别
Generative Adversarial Nets[Theory&MSE]
face recognition[MobiFace]
face recognition[MobileFaceNet]
face recognition[variations of softmax][ArcFace]
face recognition[angular/consine-margin-based][L2-Softmax]
face recognition[variations of softmax][L-Softmax]
face recognition[Euclidean-distance-based loss][Center Face]
热门文章
face recognition[Euclidean-distance-based loss][FaceNet]
face alignment[Ordinary Procrustes Analysis]
face detection[DSFD]
Fluent UDF【8】:编译型UDF
Fluent UDF【7】:解释型UDF
Fluent UDF【6】:预处理命令
Fluent UDF【5】:第一个UDF
Fluent UDF【4】:C语言
Fluent UDF【3】:环境配置
Fluent UDF【2】:学习途径
Copyright © 2011-2022 走看看