开发者

How to get current user display image in Sharepoint?

开发者 https://www.devze.com 2022-12-20 07:37 出处:网络
I h开发者_Python百科ave a MOSS 2007 site. I want to display the display image (or avatar, whatever you call it) of the current user.

I h开发者_Python百科ave a MOSS 2007 site. I want to display the display image (or avatar, whatever you call it) of the current user.

  1. Is it possible without writing a new web part? I don't have any MOSS 2007 installed computer that i can reach, so i can't develop web parts for Sharepointç (Or at at least i think)

Thanks.

P.S. By display image, i'm talking about the image which is uploaded to MySite by the user.


You have the info in the /SharedServicesPath/Person.aspx file, we usually do this:
Top of the page:

<%@ Register tagprefix="SPSWC" namespace="Microsoft.SharePoint.Portal.WebControls" assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

At the actual image spot:

<SPSWC:ProfilePropertyLoader runat="server" />
<SPSWC:ProfilePropertyImage PropertyName="PictureUrl" ResizeToFit="100" ShowPlaceholder="true" id="PictureUrlImage" runat="server"/>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号