View Single Post
  #1 (permalink)  
Old March 31st, 2006, 02:15 PM
Ron Howerton Ron Howerton is offline
Friend of Wrox
Points: 2,813, Level: 22
Points: 2,813, Level: 22 Points: 2,813, Level: 22 Points: 2,813, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 427
Thanks: 57
Thanked 2 Times in 2 Posts
Default FileUpLoad to display selected graphic?

I have a page that allows the user to browse to a folder, select a graphic, and upload it to our server. I'd like to display the selected graphic for the user prior to upload to ensure it's the graphic they really want. This seems like a common and simple enough task, but I have been unable to find a way to do it.

I'd like to automatically display the graphic when it's selected, but there appears to be no event on the FileUpLoad control that fires when a file has been selected. And I've tried adding a View Graphic button, which successfully displayed the selected graphic. But the FileUpLoad object loses the selected file name in the post back, so the user has to reselect it to upload it.

Is there a way to accomplish this in native ASP.NET (i.e. - WITHOUT using any third party products)?
Reply With Quote