This project is read-only.

Create directories with textbox

Sep 25, 2010 at 5:42 PM

hi sorry for my bad english but i need to create many directories to upload files, i want to use a textbox to give the name of the new directory, but when i want to take the text from the textbox1.text in the code it doesn't have anythink :( ¿can come one of you give me a suggestion of how to do that?

thanks a lot!

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  

If FileUploaderAJAX1.IsPosting Then

End If

End Sub


Private Sub managePost()


Dim pf As HttpPostedFileAJAX = FileUploaderAJAX1.PostedFile

Dim CARPETA As String


CARPETA =Me.TxtReferencia.Text

 If pf.ContentLength <= 20 * 1024 Then

  FileUploaderAJAX1.SaveAs("~/" + CARPETA, pf.FileName)

 End If

 End Sub


Nov 27, 2010 at 6:43 PM

Try with the full path,eg:  [ "D:\resources/teresa/" + CARPETA ]