![]() |
|
|
|
#1 |
|
I'm using the fileuploadcontrol for the user to select a file, in this case
a image file. I would like to see the little preview image to be shown right after selection, but there seems to be no event from the fileupload control. To by-pass this I let the user click on a linkbutton to show the preview, but when the page comes back after the postback, the fileuploadcontrol is empty again. Is there an update to this control, giving more events? Is there a third party control, better then the one shipped with vs2005? Is there a way to create these events for the fileuploadcontrol? rg, Eric Eric |
|
|
|
|
#2 |
|
Posts: n/a
|
On Mon, 26 Dec 2005 20:38:28 +0100, Eric wrote:
> I'm using the fileuploadcontrol for the user to select a file, in this case > a image file. > I would like to see the little preview image to be shown right after > selection, but there seems to be no event from the fileupload control. > To by-pass this I let the user click on a linkbutton to show the preview, > but when the page comes back after the postback, the fileuploadcontrol is > empty again. > > Is there an update to this control, giving more events? > Is there a third party control, better then the one shipped with vs2005? > Is there a way to create these events for the fileuploadcontrol? > > rg, > Eric Once the file is at the server, you can have the server render an image to the client in thumbnail size width/height. intrader |
|
|
|
#3 |
|
Posts: n/a
|
First of all, excuse my poor english.
I don't think that is possible, let me explain why. Through Javascript you cannot access the local filesystem, perhaps setting the IE security to lowest, but I don't think it could work. As intrader has noticed, that can be accomplished once the file is in the web server, it is the best way. The following code does NOT work. <script type="text/javascript" language="javascript"> function cargarImagenServer(){ Imagen.src=fileUploader1.value; } </script> <img id="Imagen" alt="Imagen A mostrar" src="" /> <asp:FileUpload runat="server" onclick="cargarImagenServer();" ID="fileUploader1" /> ray.bradbury9@gmail.com |
|
|
|
#4 |
|
Junior Member
Join Date: Aug 2009
Posts: 1
|
This works for me:
HTML Code:
HTML Code:
PalehorseX |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Nov 2009
Posts: 1
|
Hello,
It's not working with me can anyone plz help... The src of the image is changing but the page isnt refreshing so that the image can load again with the other src... Thank you, Anthony Ankho |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mind Control and CIA'S BOURNE IDENTITY PLOT | soleilmavis@gmail.com | DVD Video | 2 | 08-03-2007 09:54 PM |
| FileUpload Web Control is not working with Atlas | rajesh20k | Software | 0 | 02-20-2007 03:55 PM |
| Ajax Atlas not working in User Control | faiq | Software | 0 | 09-16-2006 08:28 AM |
| Charter Communications -- mind control | Laura | DVD Video | 0 | 01-28-2006 03:14 AM |
| FS: JP1 cable to program your universial remote control, now youcan control anything you want! | Mike | DVD Video | 0 | 07-15-2005 02:46 AM |