Solved

allow selection of files in asp.net

Posted on 2013-11-01
2
161 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

10 Experts available now in Live!

Get 1:1 Help Now