Solved

allow selection of files in asp.net

Posted on 2013-11-01
2
163 Views
Last Modified: 2013-11-08
I am trying to write a asp.net app (using VB)  that will perform 3 functions

1.  allow a user to select a csv file
2.  read the file  and perform validations
3. log results of validations

I know how to do #2 and #3 no problem


If I were using a windows application I would use openfiledialog to accomplish #1.  Apparently, openfiledialog is not available in asp.net

Any ideas on how to emulate the same functionality in asp.net



I just want the user to be able to select files ...I am not looking to save or upload files
0
Comment
Question by:johnnyg123
2 Comments
 
LVL 21

Expert Comment

by:Craig Wagner
ID: 39617993
I think you are missing a fundamental concept of how web applications work. The VB code you write runs on the server. If you want your VB code to be able to read through a file the only way to do that is to upload the file to the server so the VB code can get at it.
0
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 39618200
There is a comercial product: Telerik file explorer
http://www.telerik.com/products/aspnet-ajax/fileexplorer.aspx#explorer-interface

Notice that you only expose the contents of a root folder in the server.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now