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"/> 是放个人图片的。

  • 相关阅读:
    linux笔记
    restful课程凌杂知识点
    Django中间件执行流程
    restful知识点之二restframework视图
    restful知识点之一CBV
    可变长参数
    函数的重点内容
    文件的高级应用及修改的两种方式
    文件的三种打开方式及with管理文件上下文
    字符编码
  • 原文地址:https://www.cnblogs.com/ceci/p/1326092.html
Copyright © 2011-2022 走看看