摘要: 1. 显示场中所有可用的网站集[plain] view plaincopyprint?Get-SPSiteGet-SPSite2. 显示某一Web应用程序下可用的网站集[plain] view plaincopyprint?Get-SPSite–WebApplication"SharePoint–80"Get-SPSite –WebApplication "SharePoint – 80"3. 显示某一内容数据库中可用的网站集[plain] view plaincopyprint?Get-SPSite–ContentDatabase"WSS_C 阅读全文
posted @ 2013-12-17 21:09 小笔头大做用 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 最近研发的项目中开发了很多的WebPart,每次部署这些WebPart到新环境中总是很麻烦,因为自己要新创建WebpartPage,同时还要把这些WebPart放到指定的WebPart页中去;为了方便的解决这个问题,项目中实现用Module元素来创建Page,同时给每一个Page指定WebPart;具体操作步骤如下:1.添加一个Module元素,删除里面自动生成的Sample.txt;2.在这个Module元素里面添加aspx的page页面,此页面为Webpart Page的页面; 我使用的一个两列的WebPartPage模块为:3.打开Element元素, 为里面的Module节点指定Ur. 阅读全文
posted @ 2013-12-16 14:29 小笔头大做用 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Did you ever wish you had more control over how your content is indexed and presented as search results? In SharePoint 2013, you have the option to add a callout from the content processing component to your own web service so you can manipulate the content before it gets indexed. This makes it ... 阅读全文
posted @ 2013-12-12 21:39 小笔头大做用 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 下载文件如果下载其它类别的文件:SPSecurity.RunWithElevatedPrivileges(delegate(){using(SPSitecurrentSite=newSPSite(SPContext.Current.Site.ID)){using(SPWebweb=currentSite.OpenWeb(SPContext.Current.Web.ID)){stringfilename=Request.QueryString["FileName"].ToString();stringItemID=Request.QueryString["ID&qu 阅读全文
posted @ 2013-09-30 14:18 小笔头大做用 阅读(208) 评论(0) 推荐(0) 编辑
摘要: The most efficient way to a lot of transaction in SharePoint is using of SPWeb.ProcessBatchData method. For deleting operations there are very helpfull post. Code exaple from that post://WeprepareaString.FormatwithaString.Format,thisiswhywehavea{{0}}stringcommand=String.Format("{0}{{0}}Delete{{ 阅读全文
posted @ 2013-09-03 14:48 小笔头大做用 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Default Custom Action Locations and IDs SharePoint 2013 The following table shows the locations, custom action group IDs, and custom action IDs that are used in the CustomAction element and the CustomActionGroup element of custom actions that are installed by default in Microsoft Sh... 阅读全文
posted @ 2013-08-12 15:05 小笔头大做用 阅读(353) 评论(0) 推荐(0) 编辑
摘要: SharePoint中弹出模态窗口对体验提高太大了方法为:父页面中调用子页面:function showDialog() { var options = {url: "ChildrenPage.aspx",args: 7,title: "Select Value",dialogReturnValueCallback: dialogCallback};SP.UI.ModalDialog.showModalDialog(options);}function dialogCallback(dialogResult, returnValue) {//其中dial 阅读全文
posted @ 2013-08-10 14:45 小笔头大做用 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 到网上去找怎么取到一个站点的sitecollection Administrator,如果设置了一个站点的 sitecollection Administrator,那么通过: SPSite site = new SPSite(url)的这个site 的属性与方法能否找到sitecollection的 administrator呢? 当查看了所有属性和方法,发现里面没有提供直接通过site去取site admin的方法,只有一个UserIsSiteAdminInSystem; 饿饿。。那么只能够通过Web取了!到网上一搜,发现很多人用的方法都是先把所有user取出来,然后去遍历这些user.. 阅读全文
posted @ 2013-08-09 16:57 小笔头大做用 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1. 使用SharePoint2013实现基于AD的Form认证,首先创建一个Web Application,步骤如下:Central Administration -> Application Management -> Manage Web Application -> New Web Application;填写web application 端口,允许或者不允许Anonymous等等; 虽然我们只用FORM方式认证,但是现在我们还没有创建membership provider在,所以这里我们先只选择 “Enable Windows Authentication”, . 阅读全文
posted @ 2013-04-23 14:26 小笔头大做用 阅读(1829) 评论(11) 推荐(0) 编辑
摘要: 1、重写Repeater(修改过的,当只有一页的情况时,只显示Total页数及共有多少条目,不会显示上一页,下一页等):View Code using System.ComponentModel;using System.Web.UI;[assembly: TagPrefix("MyRepeater.Control", "MyRepeater")]namespace MyRepeater{ /// <summary> /// JRepeater控件 /// </summary> [DefaultProperty("Tex 阅读全文
posted @ 2013-03-08 09:42 小笔头大做用 阅读(239) 评论(0) 推荐(0) 编辑