怎样简单地上传文件?
人气:0想了解怎样简单地上传文件?的相关内容吗,在本文为您仔细讲解的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:怎样何简简单单地地上上传传文文件件??,下面大家一起来学习吧。
<html><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
<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="上传文件" onClick="UploadBtn_Click" runat="server/"> </h3>
<hr>
<asp:image id="MyImage" Visible="false" runat="server/">
</form>
</body></html>
[1]
加载全部内容