<html>
<script language="VB" runat="server">
Sub UploadBtn_Click(Sender as Object, E as EventArgs)
UploadFile.PostedFile.SaveAs(Server.MapPath("chunfeng.jpg"))
MyImage.ImageUrl = "chunfeng.jpg"
MyImage.Visible = true
End Sub
</script>
<head>
<title>星河影动之最简单的上传文件</title>
</head>
<body>
<form enctype="multipart/form-data" runat="server">
<h3>请选择上传的文件: <input id="UploadFile" type="file" runat="server"> <asp:button Text="上传文件" "UploadBtn_Click" runat="server/"> </h3>
<hr>
<asp:image id="MyImage" Visible="false" runat="server/">
</form>
</body></html>
[1]
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“如何简单地上传文件?”评论...