Author: amgc | Posted on: 12/3/2010 3:19:46 PM | Views : 552

Hello, i'me developing an ASP.NET application and it includes a FileUpload control, an object to show content of a format and a button to do functions. I want that when I upload the file, it will be shown in the object and for this reason i want to know the method to get the URL of the uploaded file.
This is the code:


if (FileUpload1.HasFile) { FileUpload1.PostedFile.SaveAs(path + FileUpload1.FileName); play.Attributes["src"] = // here is where will be indicated the url }Best regards
...

Go to the complete details ...