自定义 asp.net 页面中的 Microsoft Communicator 状态指示器(状态指示器)
所有,我正在寻找一种添加 OCS 状态图标的方法,与您在 sharepoint 中看到的相同,但我希望将其添加到自定义 asp.net 网站中。
请帮忙!
账单。
All, I am looking for a way to add an OCS presence icon the same that you would see in sharepoint, but i am looking to add it in a custom asp.net web site.
Please assist!
Bill.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 Microsoft 的“Web 应用程序中的状态”示例。
http://www.microsoft.com/downloads/details.aspx microsoft.com/downloads/details.aspx?FamilyId=AEBFA4E2-B30E-43A6-BF34-6403465BC9A9&displaylang=en
You can use the "Presence in a Web App" sample from Microsoft.
http://www.microsoft.com/downloads/details.aspx?FamilyId=AEBFA4E2-B30E-43A6-BF34-6403465BC9A9&displaylang=en
看一下 Microsoft 的以下示例(不是 AJAX 示例!):
http://www. microsoft.com/downloads/details.aspx?familyid=63388959-7320-4ffd-9167-655365d94b67&displaylang=en
要了解如何获取将鼠标悬停在跨度文本上时可见的状态指示器,请查看安装示例后,C:\Program Files\Microsoft Office Communications Server 2007\Developer Samples\使用 Communicator Automation API\Samples\Demo\LitwareInc\resources\team\Example.html 文件出现在 Web 应用程序中。
如果您想添加始终显示的状态指示器,则需要为添加到页面的每个 img 标签创建一个新 ID。
您可以在代码隐藏中通过每次将计数器变量增加 1 来完成此操作:
Take a look at the following sample from Microsoft (Not the AJAX one!):
http://www.microsoft.com/downloads/details.aspx?familyid=63388959-7320-4ffd-9167-655365d94b67&displaylang=en
To understand how to get a presence indicator that is visible when you hover over a span text look at the C:\Program Files\Microsoft Office Communications Server 2007\Developer Samples\Presence in Web Applications using Communicator Automation API\Samples\Demo\LitwareInc\resources\team\Example.html file after installing the sample.
If you want to add a presence indicator that always shows up you need to create a new ID for each img tag you add to your page.
You can do this in codebehind by incrementing a counter variable by 1 each time: