zoukankan      html  css  js  c++  java
  • 页面上放个人信息

    如何将用户的个人信息,如部门,显示在页面上呢?

    使用SPD打开页面,可以是母版页和布局页面。

    1.引入DLL

    <%@ Register Tagprefix="SharePointWebControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

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

    2.引用Profile Property Loader

    <SPSWC:ProfilePropertyLoader runat="server" />

    3.在具体的需要放的位置放上具体的属性,如:部门

    <SPSWC:ProfilePropertyDisplayName runat=server id="someID1"  PropertyName="Department"/>
    <SPSWC:ProfilePropertyValue runat=server id="someID2"   PropertyName="Department"/>

    Department可以换成其他的属性,如“PreferredName”是显示名。

    另<SPSWC:ProfilePropertyImage runat=server id="ProfilePropertyImage1" PropertyName="PictureURL"/> 是放个人图片的。

  • 相关阅读:
    降低大气分
    99999
    88888
    77777
    HandlerThread实现原理
    Android 内存泄漏总结
    Handler实现机制,同步屏障,IdleHandler
    launcher 配置
    微信小程序 上传图片七牛
    微信小程序 跳转传参数 传对象
  • 原文地址:https://www.cnblogs.com/ceci/p/1326092.html
Copyright © 2011-2022 走看看