• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 624
  • Last Modified:

Create file browse button on ASPX webform

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
Mike_Stevens
Asked:
Mike_Stevens
1 Solution
 
Bob LearnedCommented:
What do you mean that you can't read the entire path?  Is the path >260 characters?

Bob
0
 
Mike_StevensAuthor Commented:
I figured it out.

Me.FileUpload1.PostedFile.FileName.ToString

Returns the entire local path of the selected file.

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now