使用SharePoint 人员选择控件 在 WEB APP开发
2011-04-21 14:11
375 查看
首先 引用名字空间呗
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
然后在页面上面添加
<wssawc:PeopleEditor
AllowEmpty="false"
ValidatorEnabled="true"
id="userPicker"
runat="server"
ShowCreateButtonInActiveDirectoryAccountCreationMode="true"
SelectionSet="User" />
进入后台页面
using Microsoft.SharePoint.WebControls;
public class MyPageName : Page
{
protected PeopleEditor userPicker;
…
}
最后通过
public void btnSave_Click(object sender, System.EventArgs e)
{
….
PickerEntity pe = (PickerEntity)userPicker.Entities[0]; //gets first user in list
string username = pe.Description;
…
}
来获取 value
if ($ != jQuery) {
$ = jQuery.noConflict();
}
var isLogined = true;
var cb_blogId = 27201;
var cb_entryId = 1873818;
var cb_blogApp = "wanghao-3";
var cb_blogUserGuid = "5d763d0b-63cf-dd11-9e4d-001cf0cd104b";
var cb_entryCreatedDate = '2010/11/10 15:36:00';
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
然后在页面上面添加
<wssawc:PeopleEditor
AllowEmpty="false"
ValidatorEnabled="true"
id="userPicker"
runat="server"
ShowCreateButtonInActiveDirectoryAccountCreationMode="true"
SelectionSet="User" />
进入后台页面
using Microsoft.SharePoint.WebControls;
public class MyPageName : Page
{
protected PeopleEditor userPicker;
…
}
最后通过
public void btnSave_Click(object sender, System.EventArgs e)
{
….
PickerEntity pe = (PickerEntity)userPicker.Entities[0]; //gets first user in list
string username = pe.Description;
…
}
来获取 value
if ($ != jQuery) {
$ = jQuery.noConflict();
}
var isLogined = true;
var cb_blogId = 27201;
var cb_entryId = 1873818;
var cb_blogApp = "wanghao-3";
var cb_blogUserGuid = "5d763d0b-63cf-dd11-9e4d-001cf0cd104b";
var cb_entryCreatedDate = '2010/11/10 15:36:00';
相关文章推荐
- 使用SharePoint 人员选择控件 在 WEB APP开发
- 使用SharePoint 人员选择控件 在 WEB APP开发
- sharepoint 人员选择控件使用
- sharepoint中的人员选择控件peopleeditor
- sharepoint中的人员选择控件peopleeditor
- SharePoint 2013 使用Javascript 为人员控件赋值。(Set peoplepicker value use JS)
- WdatePicker日期选择控件使用时,Internet Explorer无法打开站点,已终止操作”问题的解决
- domino xpages 选择人员控件
- 使用月历控件CMonthCalCtrl让VC2010的CMFCPropertyGridProperty支持日期选择
- 使用WdatePicker.js显示日期选择控件,并进行设置
- 如何在页面中使用sharepoint中的富文本编辑器控件
- MFC 控件下拉选择和输入的 ComboBox使用
- 【SharePoint】SharePoint2013中使用客户端对象模型给用户控件赋初值
- 用到时间选择器(一)之使用datetimerpicker控件
- ASP.NET中DropDownList控件的简单使用--DDL绑定数据库表中值,选择DDL中值直接检索数据
- Android自定义控件之日期选择控件使用详解
- 使用ScriptX控件进行Web打印IIS服务器始终弹出打印机选择的问题
- Android滚轮选择时间控件使用详解
- 初学使用sharepoint 2007 用户控件包装器 QuickPart
- 下拉选择控件(PopupWindow)的使用