Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using fileUploade

Status
Not open for further replies.

kurie

Programmer
Jun 4, 2008
170
ZA
Im tring to use the fileupload control in vb.net 2008. Unfortunately when i upload something the code always indicate there is nothing. this is how im doing it

txtAttachment.SaveAs(Server.MapPath(".\") & txtAttachment.FileName)

or

txtAttachment.PostedFile.SaveAs(Server.MapPath(".\") & txtAttachment.PostedFile.Filename)
Both are not working, they dont return filenames.
Does anyone know what im supporsed to do here.
 

I use the following syntax to upload files

My.Computer.Network.UploadFile(Local File and Path, Remote File and Path, ftpUserName, ftpPassword, True, 1000)
 
thanks guys for your help, i discovered that the problem was an Update panel, i removed it and it worked. does anyone know how to make this work with an update panel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top