how to i get full file path?.... while i'm using fileupload field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • naganesh90
    New Member
    • Aug 2010
    • 2

    #1

    how to i get full file path?.... while i'm using fileupload field

    I used file browse field... I need to take the value which is in that text filed... (that means how do get full path of the selected file) please help me...
  • Aimee Bailey
    Recognized Expert New Member
    • Apr 2010
    • 197

    #2
    .Net has many solutions to situations like this, I encourage you to check out MSDN on the subject of System.IO as this will most likely answer any more questions you may have. Here for example is how we could get information about a file:

    Code:
    string filename = "";
    FileInfo info = new FileInfo(filename);
    string path = info.DirectoryName;
    Remember to reference System.IO!

    Aimee.

    Comment

    Working...