FileUploaderAjax

M

Marcos G.

Please somebody :( i want to use the control FileUploaderAjax but i want to
create many directories so i want to use a textbox to obtain the name of the
new directory but i dont understand in this example why the control:
me.txtReferencia.text don't have anything when i have alreade type something
in there :( i hope that you can helo me, and sorry for may bad english

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
carpeta1 = Me.TxtReferencia.Text
If FileUploaderAJAX1.IsPosting Then
Me.managePost()
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("~/" + CARPETA1, pf.FileName)
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top