web 2.0

ASP.NET(vb.net) & Upload and Multiple-FindControl

ASP.NET(vb.net) & Upload and Multiple-FindControl - The in this tutorial, you’ll learn and example scripts how to Upload file (Multiple-FindControl) using by ASP.NET scripts.

ShotDev Focus:
- ASP.NET(vb.net) & Upload and Multiple-FindControl



<%@ Page Language="VB" %>
<script runat="server">
Sub btnUpload_OnClick(sender As Object, e As EventArgs)
Dim i As Integer
Dim myUpoad As FileUpload
For i = 1 To 5
myUpoad = Me.FindControl("fiUpload"&i)
If myUpoad.HasFile Then
Me.lblText.Text = Me.lblText.Text & System.IO.Path.GetFileName(myUpoad.FileName) & " Uploaded.<br>"
End IF
End Sub
<title>ShotDev.Com Tutorial</title>
<form id="form1" runat="server">
<asp:FileUpload id="fiUpload1" runat="server"></asp:FileUpload><br />
<asp:FileUpload id="fiUpload2" runat="server"></asp:FileUpload><br />
<asp:FileUpload id="fiUpload3" runat="server"></asp:FileUpload><br />
<asp:FileUpload id="fiUpload4" runat="server"></asp:FileUpload><br />
<asp:FileUpload id="fiUpload5" 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>


ASP.NET(vb.net) & Upload and Multiple-FindControl

Download this script.

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

One Response to “ASP.NET(vb.net) & Upload and Multiple-FindControl”

  1. 1atmospheric…

Leave a Reply

You must be logged in to post a comment.