Reputation: 28555
how can you get the server relative url of a file in a document library from code in Sharepoint?
Upvotes: 0
Views: 7134
Reputation: 3533
Is this what you are looking for?
item.File.ServerRelativeUrl
or if you you don´t work with files:
item[SPBuiltInFieldId.FileRef].ToString();
Upvotes: 8