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
posted @ 2012-09-17 12:19 double_ed Views(274) Comments(0) Diggs(0) Edit
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
posted @ 2012-09-17 12:07 double_ed Views(188) Comments(0) Diggs(0) Edit
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
posted @ 2012-09-17 12:02 double_ed Views(150) Comments(0) Diggs(0) Edit
绑定 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
posted @ 2012-09-17 11:55 double_ed Views(176) Comments(0) Diggs(0) Edit
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
posted @ 2012-09-17 11:44 double_ed Views(159) Comments(0) Diggs(0) Edit