Solved

How to copy path from FileUpload to textbox in VB

Posted on 2013-05-14
3
460 Views
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.
0
Comment
Question by:laskydiver
3 Comments
 
LVL 18

Expert Comment

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


http://msdn.microsoft.com/en-us/library/system.web.httppostedfile.aspx
0
 
LVL 80

Accepted Solution

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

Expert Comment

by:CodeCruiser
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.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Query Help Top 1 and Distinct? 6 36
Add a Condition in ASP Repeater 6 34
JSON Deserialize issue 6 26
C# Service FileSystemwatcher isse 9 29
We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

820 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