Solved

Create file browse button on ASPX webform

Posted on 2007-11-26
2
613 Views
Last Modified: 2008-02-01
I am create a page in a website from when the site user can send and email.   I need to give the user the ability to browse their local machine and select a file to attach as part of the email.   Does anybody have any examples of who I can do this?    I tried the file upload control but can read the entire path of the selected fiile.
0
Comment
Question by:Mike_Stevens
[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
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 20354409
What do you mean that you can't read the entire path?  Is the path >260 characters?

Bob
0
 

Author Comment

by:Mike_Stevens
ID: 20357122
I figured it out.

Me.FileUpload1.PostedFile.FileName.ToString

Returns the entire local path of the selected file.

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
SSRS Deployment problem 5 124
disadvantage of code behind appoarch in asp.net 3 47
asp.net mvc5 6 32
How do you think this website does searches? 5 33
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

737 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