Hello,
How to get the full path from fileupload control browsing the path to it?
I want to get as this.
c:\Images\mine.jpg
bharanidharanit -4 Junior Poster
Recommended Answers
Jump to PostHi
Try thislbltext.Text = FileUpload1.PostedFile.FileName
FYI refer this article http://forums.asp.net/t/1077850.aspx
Mark as solved if it helps you!!!
Jump to PostDim fileName As String = "myfile" Dim pathname As String = "\mydir\" Dim fullPath As String fullPath = Path.GetFullPath(pathname) Console.WriteLine("GetFullPath('{0}') returns '{1}'", pathname, fullPath) fullPath = Path.GetFullPath(fileName) Console.WriteLine("GetFullPath('{0}') returns '{1}'", fileName, fullPath)
All 7 Replies
reach_yousuf 2 Junior Poster
bharanidharanit -4 Junior Poster

siju kuriakose

siju kuriakose
ajimkurian 0 Newbie Poster
Netcode 33 Veteran Poster
Shilpakmthn 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.