I want to Browse for an Image ? How can i Browse for an Image using asp.net, How to achieve this?
3 Answers
It sounds like you're looking for a type of file manager/folder explorer. If that is the case, there are a lot of options for you:
- Great example of building your own from Matt Berseth - follow this short tutorial
- Download an open source control - http://www.izwebfilemanager.com/
- Telerik has a great (but not free) file explorer control for sale - http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/overview/defaultcs.aspx
I'm guessing that the example from Matt Berseth is going to be the best option for you. It's easy to implement and gives you great control.
1 Comment
Todd
As a side note, the Telerik RadFileExplorer is primarily used for browsing files on the SERVER. If you want to browse images on the CLIENT, you can use the browser provided FileUpload or a plug-in like Silverlight. Additional access is restricted for obvious security reasons.
ASP.NET doesn't have a file dialog. Since 2.0 however it provides a FileUpload control. This renders as a standard html input type="file" with which you can upload images.