1、先添加webservice,引用webservice地址如:http://10.119.188.XXX:8080/_vti_bin/UserGroup.asmx2、直接用jquery调用该服务中的其中一个,下面以GetUserCollectionFromGroup为例子,判断某一组里有哪些成员,代码如下:调用webservice 1 <script type="text/javascript"> 2 function myrole() 3 { 4 var soapEnv = '<?xml version="1.0" enco Read More
1 private static PagedDataSource pds = new PagedDataSource(); 2 protected void Page_Load(object sender, EventArgs e) 3 { 4 if (!Page.IsPostBack) 5 { 6 7 BindData(); 8 } 9 }10 private void BindDat... Read More
1 protected void btnOnLine_Click(object sender, EventArgs e) 2 { 3 try 4 { 5 6 //更新 7 string loginname; 8 loginname = SPContext.Current.Web.CurrentUser.Name; 9 int query... Read More
绑定 1 private static PagedDataSource pds = new PagedDataSource(); 2 3 protected void Page_Load(object sender, EventArgs e) 4 { 5 if (!IsPostBack) 6 { 7 BindData(); 8 } 9 }10 private void BindData()11 {1... Read More
View Code 1 protected void btnsub_Click(object sender, EventArgs e) 2 { 3 try 4 { 5 SPSecurity.RunWithElevatedPrivileges(delegate() 6 //提高权限 7 { 8 SPWeb web = SPContext.Current.Web; 9 ... Read More