摘要: var clientContext = new SP.ClientContext.get_current(); //if the page and the list are in same site.If list is in different site then use relative url 阅读全文
posted @ 2018-03-13 18:56 腾飞的博客 阅读(146) 评论(0) 推荐(0) 编辑
摘要: var finalusersId = ""; $.each(users, function () { $.ajax({ url: webUrl + "/_api/web/siteusers(@v)?@v='"+encodeURIComponent(this.Key)+"'", type: "GET" 阅读全文
posted @ 2018-03-12 15:35 腾飞的博客 阅读(196) 评论(0) 推荐(0) 编辑
摘要: <Where> <Ge> <FieldRef Name='StartDate'> <Value Type='DateTime'>2017-11-07T09:00:00z</value> </Ge> </Where> 在以上的表述中时间部分将会被忽略掉,开始日期在11月7号以后9点以前以后的数据都会被 阅读全文
posted @ 2017-11-07 13:52 腾飞的博客 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 引入js <script type="text/javascript" src="/js/Uploadify/plupload.min.js"></script> 官网下载地址:http://www.plupload.com/download/ 前台HTML代码 <div id="container 阅读全文
posted @ 2017-09-20 12:00 腾飞的博客 阅读(682) 评论(0) 推荐(0) 编辑
摘要: 在web页面中调用本地应用程序 1 <script type="text/javascript"> 2 $(function () { 3 $(".navbox-tiles a").click(function () { 4 Run("C:\\Program Files\\Microsoft Off 阅读全文
posted @ 2017-07-03 20:15 腾飞的博客 阅读(2982) 评论(0) 推荐(0) 编辑
摘要: 添加引用 <script src="/js/ajaxfileupload.js"></script> js文件 http://files.cnblogs.com/files/tengfei8/ajaxfileupload.js 上传附件代码: 1 //文件上传 2 function ajaxFile 阅读全文
posted @ 2017-07-03 13:16 腾飞的博客 阅读(9048) 评论(0) 推荐(0) 编辑
摘要: 1,先引入 js <SharePoint:ScriptLink Name="clienttemplates.js" runat="server" LoadAfterUI="true" Localizable="false" /><SharePoint:ScriptLink Name="clientf 阅读全文
posted @ 2017-05-16 17:53 腾飞的博客 阅读(975) 评论(0) 推荐(0) 编辑
摘要: 由于用ajax的方式给列表添加附件。所以不能用服务器控件 UploadFile,获取文件流字节就不能用UploadFile.FileBytes, 但使用 System.IO.FileInfo myfile = new System.IO.FileInfo(filePath); byte[] file 阅读全文
posted @ 2017-05-16 17:45 腾飞的博客 阅读(152) 评论(0) 推荐(0) 编辑
摘要: SharePoint 设置了匿名访问后,可以对列表单独设置匿名访问权限。 阅读全文
posted @ 2014-12-04 10:21 腾飞的博客 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 请求“Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e942... 阅读全文
posted @ 2014-12-04 10:19 腾飞的博客 阅读(116) 评论(0) 推荐(0) 编辑