Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I get File Path from the Fileupload Control?

Posted on 2006-07-08
1
Medium Priority
?
292 Views
Last Modified: 2012-05-05
I am using a Fileupload control on VB.NET ASP.NET web page and wanted to know how to get the file path.  I can get the file name but how do I get the file path?

[        ] Browse

Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
        Dim filename_csv As String = FileUpload1.FileNameToString()  ???? I need the full path
       
        Dim sr As New StreamReader(filename_csv)  
0
Comment
Question by:Hojoformo
1 Comment
 
LVL 5

Accepted Solution

by:
nickhoggard earned 2000 total points
ID: 17067329
Hi,

Check out FileUpload1.PostedFile.FileName.

Cheers

Nick
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Integration Management Part 2
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

972 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