116 reputation
5
bio website
location
age
visits member for 2 years, 8 months
seen 10 hours ago

Jun
27
answered How to get another user's (including current user) followed sites
Jun
25
comment How to get another user's (including current user) followed sites
Update: I'm now able to enumerate followed sites for arbitrary users using a PowerShell script as well as a SharePoint console application. However, the same code used in the context of a non-null HttpContext (i.e. a web part) still returns an empty array. GetFollowedCount() returns 0 as well. Nulling out the HttpContext doesn't work either. For now, I'm refactoring in order to leverage the FollowedItem objects resulting from a call to UserProfile.FollowedContent.GetItems(). So lame...
Jun
25
comment Powershell GetFollowedCount returns 0
Thanks for your answer, Todd. Just to clarify, you wrapped the entirety of the script in your question in an elevated block, or just a select portion of the script?
Jun
24
awarded  Organizer
Jun
24
revised How to get another user's (including current user) followed sites
Added some additional tags and made some minor clarifications.
Jun
24
suggested suggested edit on How to get another user's (including current user) followed sites
Jun
24
comment How to get another user's (including current user) followed sites
Also, apparently you can get to another user's followed content via UserProfile.FollowedContent, but you cannot easily go from an array of FollowedItem objects to an array of SPSocialActor objects, as far as I know.
Jun
24
comment How to get another user's (including current user) followed sites
I have SP1 installed and am noting the same behavior. I have also tried: impersonating via user tokens, temporarily nulling out HttpContext.Current, rebuilding HttpContext.Current entirely, using a UserProfileManager constructor overload that includes an ignore privacy flag, etc. I'm even unable to enumerate followed sites for all users using PowerShell or a console application, which is weird.
Jan
4
comment Adding Report Viewer Control on Custom Web Part ASCX Control
Ah, cool. Glad you figured it out. With the correct reference in place are you good to go?
Jan
4
awarded  Commentator
Jan
4
comment The remote server returned an error: (401) Unauthorized sharepoint
What type of authentication you are employing within the target web application on Domain A? And does the SharePoint server on Domain A know who username is? You may also want to see: sharepoint.stackexchange.com/questions/35933/…
Jan
3
comment Best practices for building a SharePoint Extranet
Link to case study is dead. Not surprising due to the age of the question/answer. I thought it was worth mentioning, however.
Jan
3
comment Adding Report Viewer Control on Custom Web Part ASCX Control
Yes, but the existing references may be pointing to the older assemblies (8.0.0.0 and 9.0.0.0), not 10.0.0.0 (see the threads in those links). Are you using three different versions of the Report Viewer in parallel?
Jan
2
answered Adding Report Viewer Control on Custom Web Part ASCX Control
Jan
2
answered Using SP's document rendering engine in a 3rd party utility
Dec
31
comment share point Page layout AJAX
I'm going to need more information than "it doesn't work." Which part? Does "message.d has text with href control in it" mean that if you alert on message.d you'd get something like "<a href="#">Link</a>"?
Dec
31
comment share point Page layout AJAX
Minor correction: append also supports HTML strings: api.jquery.com/append. However, to perform your manipulations on the HTML you'd still need a jQuery object.
Dec
31
comment share point Page layout AJAX
Assuming message.d is a valid HTML string, yes that should work. If you wanted to do it all in one line you could use append (since your HTML string is now a jQuery object): $("#<%= lbKiidsUrl.ClientID %>").append($(message.d).find("span:first").attr("onclick", "void(0)").addClass('confirmleave'));
Dec
31
comment share point Page layout AJAX
A couple things: a) where did lbKiidsUrl come from? b) you still haven't provided the raw value of message.dafter a successful service call. I'm assuming that message.d is a string of HTML as your jQuery code is attempting to both attach an onclick attribute and add a CSS class to the first span tag. jQuery selectors run against jQuery objects, not raw HTML. Try to parse the HTML into a jQuery object first: stackoverflow.com/questions/9551230/…
Dec
30
awarded  Supporter