ASP.NET MVC应用程序中的人员选取器控件实现 [英] People picker control implementation in asp.net mvc application

查看:160
本文介绍了ASP.NET MVC应用程序中的人员选取器控件实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中包括Sharepoint人员选择器控件类型,我的应用程序是在asp.net MVC中开发的.有没有办法让我可以在我的asp.net应用程序中包括GAL功能.即使未在用户PC中安装Outlook,这也应该起作用.

I want to include the Sharepoint people picker control type in my application, My app is developed in asp.net MVC. is there a way so that i can include the GAL feature in my asp.net application. This should work even if the outlook is not installed in user pc.

推荐答案

我建议编写一个插件. (尽管我从来没有要求实施它)

I would suggest writing a plugin. (Although I have never had the requirement to implement it YET)

方法:

您编写了一个从AD加载用户的控制器,然后通过AJAX将这些用户的JSON对象发送到您的客户端,然后使用jquery autocomplete来过滤作为用户类型的名称.

you write a controller that loads users from AD, and then send a JSON object of these to your client via AJAX and then use jquery auto complete to filter names as the user types.

通过对该控制器进行AJAX调用来模拟检查用户"按钮,并在单击该按钮时检查名称是否存在.然后如果错误则写相应的错误消息.

Simulate the "check User " button by making AJAX calls to that controller and check if name exist on click of that button. then write appropriate error messages if false.

尽管如此,我仍然会寻找其他解决方案

I would still be on the lookout for other solutions though

这篇关于ASP.NET MVC应用程序中的人员选取器控件实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆