Sorry for my lack of Razor knowledge, but my mission is
I have a field that has a complete path to a file like /Files/Images/Ognir/Vagar/Gardsvegur_22_Sorvagur/00.JPG
Now, i want to get the value of the path minus the filename and extension. So my output would be /Files/Images/Ognir/Vagar/Gardsvegur_22_Sorvagur
I have tried to google a solution for how to do this in Razor, but no luck - and since I am under time pressure, i´am trying a bit of a long shot, and hope some of you will grant me an early Christmas gift and indicate a solution.
Any help is really apreciated.
Thanks in advance.
br Hans