<$BlogRSDUrl$>

Tuesday, May 11, 2004

ASP.NET Class Notes 

UsingControls.ppt

File Uploader
buttonUpload
buttonDelete

craig.isysguy.com - All the files Craig does in class. I need to look here to learn what I missed.

dest = Server.mapPath("/uploadedfiles") - to find out where a directory is on the server
dest = dest /*the path*/ += "\" + system.IO.Path.GetFileName(UpFile.FileName) - adds the file name to the path
upfile.saveas(dest)

listboxes persist through postbacks
/*Delete file */
if not isnothing(lstFiles.SelectedItem) Then
dim dest as string
dest = Server.MapPath("/uploadedfiles")
dest += "\" + lstFiles.SelectedItem.Text
System.IO.File.delete(dest)
refreshFileList()
End If


This page is powered by Blogger. Isn't yours?