Author: lukes123 | Posted on: 6/8/2009 2:34:08 PM | Views : 429

Hi
I have an input form which contains a file upload point. When the user uploads the file, I want the script to rename the file as the ID of the new data entry which has not been created yet (which the form will create).
How can I add this to the code? I have the following:
 
Try FileField.PostedFile.SaveAs(Server.MapPath("~/Images/Members/") + 'ID of the data needs to go here) ResultMessage.Text = "File successfully uploaded!" Catch ex As Exception ResultMessage.Text = "File failed to upload, please contact the developer." End Try  
The event handler is currently Button1_Click which is the upload button and not the data i ...

Go to the complete details ...