I am creating a custom palette and I want each unique LinkButtonArgument URL.
I have a shared string variable which is a url. The name of each website can be different and as long as possible, the character is not limited.
String variable might look like this:
http://site/org/content/Change/Book/process/item
what I would like to do is split the string variable and add it to the array so that it looks like this:
http://site/org
http://site/org/content/
http://site/org/content/Change/
http://site/org/content/Change/Book/
http://site/org/content/Change/Book/process/
http://site/org/content/Change/Book/process/item
I tried the following code:
private void AddBreadCrumb(SPWeb web)
{
var webUrl = web.Url;
var linkList = new List<string>(webUrl.Split('/'));
}
But he does not do as I want it.
Any kind of help appiacted
source
share