Solved

Create file browse button on ASPX webform

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now