Solved

How to copy path from FileUpload to textbox in VB

Posted on 2013-05-14
3
469 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
[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
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 81

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net Data Class 1 45
CSS question 16 62
Change the color of spectfic dates in date picker control asp.net 29 56
CSS styling problem 3 27
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
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…

732 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