View Single Post
  #2 (permalink)  
Old October 13th, 2009, 02:56 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

It's not easy to do as the browser doesn't support this out of the box. For some ideas to work around that, take a look here:

http://www.quirksmode.org/dom/inputfile.html

For some of the issues and logic behind them, take a look here:

HTMLInputFile control

Alternatively, you can look at third party component vendors like Telerik:

http://demos.telerik.com/aspnet-ajax...defaultcs.aspx

Use the Change Skin drop down to see different versions of the upload control.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
varunbwj (October 14th, 2009)