2
votes
3answers
308 views

Get absolute URL to listitem's default display form

I need to have an absolute URL of a listitem's display form - currently I do it the following way: On http://mydomain.com/: item.ParentList.ParentWeb.Url.TrimEnd('/') //"http://mydomain.com" + "/" ...
0
votes
1answer
135 views

'Url' for SharePoint item in SocialDataService.GetTags(url)

I am calling the 'SocialDataService.GetTags' web service method to try and obtain the Tags for a specific SharePoint item in a list or for a SharePoint document in a Document library. For the ...
0
votes
1answer
2k views

How to get a document library URL from c# in visual web part?

I'm making a visual webpart in a sp2010 environment. I am trying to get the document library URL. I have this code so far: My variables are not getting the right values. Like the libraryURL, ...
0
votes
0answers
72 views

Right way to generate links for forms and pages?

I am building a visual webpart in SP2010, and I have a class that gets the url's of various things such as forms, and permissions pages and library settings pages. I tried to implement them myself ...
0
votes
1answer
51 views

Is there a “URL-Structure” for Users and Groups I can access via Hyperlink?

I have a Custom WebPart which gets credentials from the site into a GridView-Table. The result (user and credential) is shown as strings. I want to create a Hyperlink to the users e.g. mysite, instead ...
2
votes
0answers
603 views

Url to an item with Client Object Model

Regarding my question, at this moment i'm writing some client object model code and I can't find a way to retrieve create make an url ... My question now is: How can I create an url to an item? I ...
0
votes
1answer
300 views

SPFile Update fails, Exists returns true

I have a block of code wrapped in an if: mySite.AllowUnsafeUpdates(); SPFile mySPFile = web.GetFile(someURL); if (mySPFile.Exists) /*returns true, enters code block*/ { //... make some updates ...
2
votes
2answers
344 views

link documents in sharepoint 2010

how can i create a link to a document in a library in c# using the object model in sharepoint 2010?
0
votes
4answers
3k views

How can I get the current “full” URL displayed in the Browser?

I'm not looking for the solution using SPContext & so. I tried it but I can't get URLs like: http://mypage.com/testblog/Lists/Posts/Post.aspx?ID=1 ) thanks george ps: I forgot to mention that ...