How to copy path from FileUpload to textbox in VB

Posted on 2013-05-14
Last Modified: 2013-05-16
I'm creating a web page using VS Web Express and I'm wanting to use the FileUpload to browse to a file and have the path to the file copied over to a text box. This should be pretty easy, I'm just not familiar with the FileUpload. Any help would be appreciated. I can use a button to do the copy or it can happen on change, it doesn't matter.
Question by:laskydiver
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
LVL 18

Expert Comment

by:Jerry Miller
ID: 39166970
You can use the HttpPostedFile.FileName value and assign it to your textbox.text.
LVL 81

Accepted Solution

David Johnson, CD, MVP earned 500 total points
ID: 39167080
LVL 83

Expert Comment

ID: 39167478
>I'm wanting to use the FileUpload to browse to a file and have the path to the file copied over to a text box.

The file has to be uploaded to the server first. You can not access it on the client directly.

Featured Post

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

691 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