Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

upload again

  Asked By: Joel    Date: Jul 16    Category: Asp.net    Views: 783
  

when i upload file im getting it's full path:
myFile.postedFile.fileName
how can i retrieve only th file name and the extension?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Sherrie Thomas     Answered On: Jul 16


Response.Write(System.IO.Path.GetExtension(strFileNamePath))

Response.Write(System.IO.Path.GetFileName(strFileNamePath))

 
Didn't find what you were looking for? Find more on upload again Or get search suggestion and latest updates.




Tagged: