I am looking to add a browse button to a visual studio app something simular to the the dialog box in the ‘fileupload’ tool. I am looking to be able to graphically select any file from my computer or a computer across a network.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a
FileUploadcontrol…http://www.dotnet-webhosting.com/aspnet-2-0-tutorials/asp-net-2-0-fileupload.aspx
Otherwise, the SWF uploader is very popular if you want something richer: http://www.swfupload.org/
EDIT:
The
OpenFileDialogis a WinForms control and there is no equivalent in ASP.NET. When using aFileUploadthe browser knows to provide you with a file picker to browse your local system. There is no way to replicate this behaviour with some type of local ActiveX control. This is a natural and deliberate limitation of the web, the application should not be able to access your local file system apart from in exceptional and well-defined circumstances.