How to get image source
how to get image source by clicking on image actully that images are stored in images folder ..when i click on particular image i want that selected image path how?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Mithun PattankarRank #1,446 · 1.1K reputationPosted Jan 28, 2016, 3:20 AM EST
Cassie ModRank #3,821 · 387 reputationPosted Jan 28, 2016, 4:16 AM EST
for winforms: var fileName = "myImage.gif"; var path1 = @"mydir"; var fullPath; fullPath = Path.GetFullPath(fileName); Console.WriteLine("GetFullPath('{0}') returns '{1}'", fileName, fullPath); for webapp (when uploaded a picture): string file = FileUpload1.PostedFile.FileName; hopes this helpes