Getting the absolute URL for a SharePoint SPItem

66

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

Share this entry

Leave a Reply

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

Table of Contents

Categories

Categories