Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i am looking for a tutorial or article on uploading an image with progress bar
any kind of help will be deeply appreciated
i know its easy to surf on google but i am in search of an recommended article or tutorial
thanks
Posted

Add Script Manager, UpdatePanel, Update Progress controls............



 
<asp:scriptmanager id="ScriptManager" runat="server" xmlns:asp="#unknown">



<asp:updatepanel id="UpdatePanel1" runat="server" xmlns:asp="#unknown">
<contenttemplate>
<asp:updateprogress id="UpdateProgress1" runat="server">
<progresstemplate>
Updating Data.... 
Updating in Progress...
height="20" width="20" />





 
Share this answer
 
 
Share this answer
 
refer the following link
Ajax File Upload[^]
 
Share this answer
 
Hi,
Here is the code, need some modification to use-
VB
Sub UpdateProgressBar(ByVal sender As Object, ByVal e As UploadProgressChangedEventArgs)

    If progressBar1.InvokeRequired Then

        progressBar1.Invoke(New UploadProgressChangedEventHandler(AddressOf UpdateProgressBar),sender, e)

        Exit Sub

    End If

    progressBar1.Value = CInt(progressBar1.Minimum + ((progressBar1.Maximum - progressBar1.Minimum) * e.ProgressPercentage) / 100)

End Sub

Private Sub btnUpload_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpload.Click

    Dim client As New System.Net.WebClient()

    AddHandler client.UploadProgressChanged, AddressOf UpdateProgressBar

    With client

        .Credentials = New NetworkCredential(     "MyFTPUsername", "MyFTPPassword")

        .UploadFile("ftp://webserverurl.com/public_html/test.zip", "C:\Users\Dreadypeetje\Downloads\test.zip")

    End With

End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900