Solved

Create file browse button on ASPX webform

Posted on 2007-11-26
2
611 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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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