aspXUploadModuler

Last post 11-12-2009 6:04 AM by mudassarkhan. 3 replies.

Sort Posts:

  • aspXUploadModuler

    10-30-2009, 10:33 PM
    • Member
      1 point Member
    • omel81
    • Member since 01-09-2009, 7:40 AM
    • Posts 67

    Hello,

    I want receive only folder if i click browse & ok.  Is it possible Upload Moduler  receive folder not file.

  • Re: aspXUploadModuler

    10-31-2009, 1:13 AM
    • All-Star
      59,891 point All-Star
    • mudassarkhan
    • Member since 02-28-2008, 5:28 AM
    • Mumbai, India
    • Posts 10,550
    • TrustedFriends-MVPs

    No it is not possible with the existing FileUpload control to upload folders

    but yes you can upload select and upload multiple files like Gmail

    http://www.aspsnippets.com/post/2009/08/19/Multiple-File-Uploads-Gmail-Style-using-JQuery-and-ASPNet.aspx 

  • Re: aspXUploadModuler

    11-12-2009, 3:02 AM
    • Member
      1 point Member
    • omel81
    • Member since 01-09-2009, 7:40 AM
    • Posts 67

    Hi mudassarkhan,

    I tried using multiple upload like ur suggestion but using my code. But i have 1 combobox outside uploadcontroler and want save value for that combobox.  System cannot read that value.  Y this problem happend?...is it i need directcast the combobox. Pls help me?

     

      Dim ret As String = ""
    
            Using adpGS As New dsGeneralSetupTableAdapters.GeneralSetupTableAdapter
                adpGS.SelectCommand(0).CommandText = "Select * From GeneralSetup"
                Dim sWhere As String = "Type= 'PATHTO'"
                Dim dr As dsGeneralSetup.GeneralSetupRow = adpGS.GetDataByWhere(sWhere).Rows(0)
    
                txtPathTo.Text = dr.Desciption
            End Using
    
            If uploadedFile.IsValid Then
                Dim fileInfo As New IO.FileInfo(uploadedFile.FileName)
                Dim resFileName As String = txtPathTo.Text + ASPxComboBox1.Text + fileInfo.Name
                uploadedFile.SaveAs(resFileName)
    
                Dim fileLabel As String = fileInfo.Name
                Dim fileType As String = uploadedFile.PostedFile.ContentType.ToString()
                Dim fileLength As String = uploadedFile.PostedFile.ContentLength / 1024 & "K"
                ret = String.Format("{0} <i>({1})</i> {2}|{3}", fileLabel, fileType, fileLength, fileInfo.Name)
            End If
            Return ret
    
    
    
    
        End Function
    
            
        'Private Sub ListSuccess()
        '        bListMsg .Items .Add ("Upload Success!")
        'End Sub
        Protected Sub UploadControl_FileUploadComplete(ByVal sender As Object, ByVal e As FileUploadCompleteEventArgs) Handles UploadControl.FileUploadComplete
    
            Try
                e.CallbackData = SavePostedFiles(e.UploadedFile)
            Catch ex As Exception
                e.IsValid = False
                e.ErrorText = ex.Message
            End Try
    
            'ListSuccess()
        End Sub


     

  • Re: aspXUploadModuler

    11-12-2009, 6:04 AM
    • All-Star
      59,891 point All-Star
    • mudassarkhan
    • Member since 02-28-2008, 5:28 AM
    • Mumbai, India
    • Posts 10,550
    • TrustedFriends-MVPs

    You can get the value this way

    Dim value as string =  Request.Form(DropDownlist1.ClientId) 

Page 1 of 1 (4 items)