pls help me i wroet some code but not getting results

Posted by Vanamalisowjanya under ASP.NET on 11/1/2011 | Points: 10 | Views : 1327 | Status : [Member] | Replies : 5
i have creating one web application with five dropdown boxes and datalist and one search button and one clear button .i hav choose sleted items in all dropdowns.finally when i click search butoon images are disply in fron end this is my task here every thing is fine actually probelm is i need only image name but my source code getting full path of the image .how can i modify these .i will hv sent my screen short and my code with these post























<a href=http://iphone-ipad-app-icon-design-designer.com/ >ipad designer</a>, <a href=http://www.youtubetomp3.name/ >youtube to mp3</a>























<a href=http://iphone-ipad-app-icon-design-designer.com/ >ipad design</a>, <a href=http://www.youtubetomp3.name/ >youtube to mp3</a>

vanamali .sowjanya


Responses

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

Up
0
Down
You can filter your image name using Path.GetFileName(fileName). Try this

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

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

Posted by: Vanamalisowjanya on: 11/1/2011 [Member] Starter | Points: 25

Up
0
Down
already i wrote Blessy but here images are getting full path of the image i want to display only the image name not full path of the image


where can i write those line in my source code...................

























































































































































































































































































































































[URL=http://iphone-ipad-app-icon-design-designer.com/ ]iphone app icon[/URL], [URL=http://www.youtubetomp3.name/ ]youtube to mp3[/URL]

vanamali .sowjanya

Vanamalisowjanya, 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 i check Blessy's ans.

she is right.

use IO.Path.GetFileName(path)
where path specifies full path of your image file.

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

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

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

Up
0
Down
Hi,

Please try imageFileList.Add(K) instead of imageFileList.Add(new hi(filename=....). I am not fully understand why your are using this code

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

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

Posted by: Vanamalisowjanya on: 11/1/2011 [Member] Starter | Points: 25

Up
0
Down

thanks to given reply blessy........i got required output......




























































































































































































[URL=http://iphone-ipad-app-icon-design-designer.com/ ]iphone design[/URL], [URL=http://www.youtubetomp3.name/ ]youtube to mp3[/URL]

vanamali .sowjanya

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

Login to post response