ASP.NET(vb.net) & Upload file (FileUpload Control) - The in this tutorial, you’ll learn and example scripts how to Upload file (FileUpload Control) using by ASP.NET scripts.
ShotDev Focus:
- ASP.NET(vb.net) & Upload file (FileUpload Control)
Example
AspNetFileUpload.aspx
<%@ Page Language="VB" %>
<script runat="server">
Sub btnUpload_OnClick(sender As Object, e As EventArgs)
If Me.fiUpload.HasFile Then
Me.fiUpload.SaveAs(Server.MapPath("Myfiles/"&fiUpload.FileName))
Me.lblText.Text = fiUpload.FileName & " Uploaded.<br>"
End IF
End Sub
</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form id="form1" runat="server">
<asp:FileUpload id="fiUpload" runat="server"></asp:FileUpload>
<input id="btnUpload" type="button" OnServerClick="btnUpload_OnClick" value="Upload" runat="server" />
<hr />
<asp:Label id="lblText" runat="server"></asp:Label>
</form>
</body>
</html>
Screenshot


1nourishing…
…