how to get only image name from iamge path

Posted by Chanti444 under ASP.NET on 10/29/2011 | Points: 10 | Views : 1643 | Status : [Member] | Replies : 2
how to get only image name from full path of the image ...........here attach the my source code and design code can u help me who knows any one what should i wrong here

satya


Responses

Posted by: Blessyjees on: 10/31/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

By using Path.GetFileName(<fullpath>) you will get only the filename. For getting this function using System.IO namespce in your page.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Chanti444, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 11/1/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi Blessy is right



Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Chanti444, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response