Solved

allow selection of files in asp.net

Posted on 2013-11-01
2
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 36

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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