Hi guys,
can someone help me to this question regarding C#-Programming:
I get the Url of an current listItem via (How can I make it better? Like the code below it's static to the list "Documents" and the item.Items[0]):
SPList list = web.Lists["Documents"]; SPListItem item = list.Items[0]; string itemUrl = item["ows_EncodedAbsUrl"].ToString();
Now, I want to copy it for the clipboard. I did try the following, but I doesn't work.
Clipboard.SetText(LabelResult.Text = "Url: " + itemUrl);
Background:
The process is, if the user selects an document and clicked on a custom button "copy url" the url of the selected document should be copied.
Second, if the user clicked on "copy url and send via Email" an outlook Email should have open with that url in the body.
Many thanks for your help. I hope that someone can help me out.
Kind Regard,
ryo998