是否可以像在SharePoint中一样显示活动目录信息弹出窗口

时间:2021-11-16 03:01:33

In SharePoint when you hover over a user's name a popup appears with their details from AD, like in Outlook, like this...

在SharePoint中,当您将鼠标悬停在用户名称上时,会出现一个弹出窗口,其中包含来自AD的详细信息,例如在Outlook中,就像这样......

是否可以像在SharePoint中一样显示活动目录信息弹出窗口

How is this done and is it possible to do the same in my own ASP.NET websites using whatever SharePoint has to do this? We have a staff Intranet I would like to do this in.

这是如何完成的,是否有可能在我自己的ASP.NET网站中使用SharePoint必须执行的操作?我们有一个工作人员Intranet我想这样做。

1 个解决方案

#1


1  

You can copy the javascript directly from the SharePoint page, e.g.

您可以直接从SharePoint页面复制javascript,例如

<script type="text/javascript" src="http://sharepointsite/_layouts/1033/init.js">
</script>
<script type="text/javascript" src="http://sharepointsite/_layouts/1033/core.js">
</script>
<style type="text/css">
img.presenceIndicator
{
   border-style:None;
   height:12px;
   width:12px;
   border-width:0px;
   vertical-align: middle
}
</style>
<span>
   <img id="uniqueID" onload="IMNRC('jadams@example.com', 
   getElementById('uniqueID'))" ShowOfflinePawn="1" 
   src=http://sharepointsite/_layouts/images/blank.gif 
   class="presenceIndicator"/>

   <a href="someCustomUserProfilePage.aspx?UserID=adamsjl">Adams, Jacob L.</a>
</span>

, or use these codeplex controls.

,或使用这些codeplex控件。

#1


1  

You can copy the javascript directly from the SharePoint page, e.g.

您可以直接从SharePoint页面复制javascript,例如

<script type="text/javascript" src="http://sharepointsite/_layouts/1033/init.js">
</script>
<script type="text/javascript" src="http://sharepointsite/_layouts/1033/core.js">
</script>
<style type="text/css">
img.presenceIndicator
{
   border-style:None;
   height:12px;
   width:12px;
   border-width:0px;
   vertical-align: middle
}
</style>
<span>
   <img id="uniqueID" onload="IMNRC('jadams@example.com', 
   getElementById('uniqueID'))" ShowOfflinePawn="1" 
   src=http://sharepointsite/_layouts/images/blank.gif 
   class="presenceIndicator"/>

   <a href="someCustomUserProfilePage.aspx?UserID=adamsjl">Adams, Jacob L.</a>
</span>

, or use these codeplex controls.

,或使用这些codeplex控件。