Getting the absolute URL for a SharePoint SPItem Getting the absolute URL for a SharePoint SPItem
Keyur Nathani

Keyur Nathani

August 16, 2013

All Post
img
Share:

Getting the fully encoded absolute URL

Most properties for an SPFile and SPItem only give part of the URL. To get the full URL, use this reference:

SPItem["EncodedAbsUrl"]

It’s not so obvious to find this property, as it will not be listed in the fields returned in the SPField collection for the SPList

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to talk?

Drop us a line. We are here to answer your questions 24*7.