Thanks for the quick reply on the File Upload naming question, it worked for me. I have another question though.
After the file is done uploading, the control seems to refresh the page automatically to itself. Is there a way to prevent this? I'm using the control in an iframe so I'd like the user to select the file, have the file be uploaded via the control, and then when done the control just displays that the file has been uploaded successfully. The user would then have to fill out some other info and hit "Next".
EDIT: Also forgot to mention I am firing the following code to move the file correctly so I'd like this code to be executed to get the file to the right location and then "do nothing".
- <script runat="server">
Public Sub Uploader_FileUploaded(sender as object, args as UploaderEventArgs)
If System.IO.File.Exists("\\server1\upload\"+args.FileName) = True Then
System.IO.File.Delete("\\server1\upload\"+args.FileName)
End If
args.MoveTo("\\server1\upload\"+args.FileName)
End Sub
</script>