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.
Mike_StevensAsked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.