Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Get site collection name through c# code

  Asked By: Kaci    Date: Aug 10    Category: Sharepoint    Views: 4073

I have a custom column call Doc ID where I stored my document GUID. I want to
concatenate the name of the site collection and Document library name to the Doc
ID field. Example http://server/sites/TestSite. I want to concatenate the
"TestSite" to this: listItem["Document ID"] =
properties.ListItem.UniqueId.ToString(); but I don't know how to get just the
site name and concatenate it.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Get site collection name through c# code Or get search suggestion and latest updates.




Tagged: