随笔分类 - moss
摘要:【http://www.cnblogs.com/Bear-Study-Hard/archive/2011/06/22/2086819.html】环境为Windows Server 2008 Enterprise操作系统,SharePoint 2007,IIS 7.0,网站集是Team Site。 上传一个30多M的文件,无论如何也上传不上去,在CA(管理中心)中已经修改过Maximum Upload Size,默认为50M,已经完全可以满足大小,基于Windows Server 2003和IIS 6.0的环境没有此问题。 上传测试: IE 6.0 上传选择文件后点击OK...
阅读全文
摘要:webservice里查询某一目录下的所有对象(文件夹和文档)。<Query /><ViewFields /><QueryOptions> <Folder>文档库/1/</Folder></QueryOptions>对象模型里的查询某一目录下的所有对象(文件夹和文档)。 using (SPWeb web = SPContext.Current.Site.OpenWeb(new Guid(webGuid))) { SPList list = web.Lists[new Guid(listGuid)]; SPFolder fo
阅读全文
摘要:[http://www.cnblogs.com/FreeDong/archive/2011/11/16/2250548.html]在SharePoint中创建自定义字段类型,必须完成两个工作:创建继承于SPField的字段类;编写字段的配置文件,声明字段的基本属性、字段的实现类和字段的呈现逻辑等。 首先在SharePoint站点创建一个自定义列表,我命名为“客户资料”。 接下来打开VS2010,并创建一个空白SharePoint项目,我的项目命名为“MyCustomFieldsDemo”,一定要选择”部署为场解决方案“,否则不能部署; 然后添加一个类CustomAgeField.cs, ...
阅读全文
摘要:[http://vspug.com/roni/2007/08/27/moss-2007-using-property-bag-of-spweb-to-store-metadata/]On an SPWeb there is no out-of-the-box solution to store custom metadata, you only have the name (URL), the title and the description. If you need more (e.g. status (active/inactive) or location) you have to i
阅读全文
摘要:在master page里面加入这么段JS:<script type="text/javascript"> _spBodyOnLoadFunctionNames.push("Logout"); function Logout() { setTimeout(function () { STSNavigate('/_layouts/SignOut.aspx'); }, 1000 * 60 * 10); }</script>但是这样存在一定的风险。因为如果用户是在浏览一个很长的文章或者是Video,很久没有跳转页面。仍然
阅读全文
摘要:[http://blogs.msdn.com/b/kaevans/archive/2010/08/04/deploying-an-asp-net-httphandler-to-sharepoint-2010.aspx]Got a cool question in email today… how to deploy an HttpHandler to SharePoint 2010 that uses code-behind. The answer is that you don’t really use code-behind like you would in an ASP.NET app
阅读全文
摘要:[转http://www.cnblogs.com/Believeme/archive/2011/10/28/2227697.html]目录1.1 管理缓存配置文件.. I1.2 配置基于磁盘的缓存.. III1.3 配置对象缓存设置.. III1.4 配置页面输出缓存设置.. III1.1 管理缓存配置文件ü 点击“网站设置”—>”网站集缓存配置文件”.ü 打开之后如下图所示会发现有4个默认的缓存配置文件,我们可以修改这4个中的相关配置来达到自己的用途也可以自己定义,现在我们修改默认的来达到自己的功能。点击“公共Intpernet(完全匿名)”,然后点击“编辑项目”如
阅读全文
摘要:绝大多数sharepoint 页面都是基于母版页的。而body标签也在母版页中。因此在内容页中不能直接添加onload事件方法。 为了突破这个限制,sharepoint提供了一个“_spBodyOnLoadFunctionNames”数组。当body载入完成后,onload事件会执行 该数据内的每一个方法。我们执行将方法名添加到该数组即可。 <script language="javascript"> _spBodyOnLoadFunctionNames.push("FunctionName"); //注意 不带括号 function Fun
阅读全文
摘要:【转http://www.cnblogs.com/luminji/archive/2011/09/02/2163525.html】一:压力测试中需要掌握的几个基本概念1:吞吐率(Requests per second)服务器并发处理能力的量化描述,单位是reqs/s,指的是某个并发用户数下单位时间内处理的请求数。某个并发用户数下单位时间内能处理的最大请求数,称之为最大吞吐率。记住:吞吐率是基于并发用户数的。这句话代表了两个含义,1:吞吐率和并发用户数相关;2:不同的并发用户数下,吞吐率一般是不同的。计算公式:总请求数 / 处理完成这些请求数所花费的时间,即Request per second.
阅读全文
摘要:【转】http://maiomar.itegyptcorp.com/blog/Lists/Posts/Post.aspx?ID=109Interesting, isn't it???Why would you want to authenticate by your AD account from FBA while you can still do by Windowns Authentication..Actually i didn't find a reason but i was giving SharePoint course, when a Trainee told
阅读全文
摘要:网上很多Linq to sharepoint 的文章http://bbs.winos.cn/thread-91036-1-1.html这里不多介绍了本文主要介绍 在linq 生成引用的文件时使用的 parameters在使用C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/BIN下的spmetal 工具生成 列表实体文件时 会使用到 parameter 参数例如spmetal /web:http://localhost /parameters:parameters.xml /language:csha
阅读全文
摘要:【转】http://erikswenson.blogspot.com/2010/01/sharepoint-2010-base-css-classes.htmlThis will be the first of many SharePoint 2010 posts. I will be focusing on a few of the main CSS classes used for SharePoint 2010 Public Beta. As the product becomes more final there might be some changes to the class n
阅读全文
摘要:【转http://grounding.co.za/blogs/brett/archive/2008/05/23/sharepoint-register-an-assembly-as-a-safe-control-in-the-web-config-file.aspx】In order for you to use your own custom assembly with your web parts and other little bits, you will need to add your safe control to the web.config file. However, yo
阅读全文
摘要:【转】http://www.johnchapman.name/sharepoint-2010-create-a-simple-custom-action-using-visual-studio-2010/Visual Studio 2010 has added a multitude of new features to make custom development on SharePoint 2010 much simpler that it was previously. Though Visual Studio 2010 does not include a simple wizard
阅读全文
摘要:【转】http://blog.joycode.com/erucy/archives/2010/09/22/116074.joy在SharePoint默认的几种Web部件页中,均是不包含左侧导航的(或者叫快速启动栏),原因在于这些Web部件页的模板都重新定义了母版页中左侧导航区域的ContentPlaceHolder,将里面的内容设置为空白。在SharePoint 2007的时候,恢复Web部件页的左侧导航很容易,直接用Designer编辑页面,将页面中PlaceHolderLeftNavBar的Content控件删掉即可,使用母版页中默认定义的内容。但是到了SharePoint 2010中,这
阅读全文
摘要:问题:在进行WebParts开发的时候经常出现情况是:正在开发的Webparts放到某个页面里(比如/siteurl/default.aspx)进行调试,引发意想不到的ERROR导致整个网页无法浏览;解决方案:其实MOSS给我们准备了一个方便快捷的方法,只需要 在WebParts所在页面的URL后加上"?contents=1"就可以很快的进到WebParts管理页面了。比如,WebParts是配置在http://i-wangjinfang:10000/siteurl/default.aspx,那么WebParts管理页面的地址就是http://www.i-wangjinfa
阅读全文
摘要:【转】http://xiangzhangjun2006.blog.163.com/blog/static/4414096620107122828593/Moss中的单点登陆方案是在MOSS系统中,将需要进行单点登陆整合的系统的帐号和密码通过加密保存在MOSS中,在登陆时通过中间页面将帐号和密码解密出来,再POST到其他系统完成登陆,当然如果子系统有更好的登陆接口将更加安全可靠;这种方案实现了单点登陆中的帐号映射问题,但并没有帮助用户实现跳转等功能,要求开发人员对各个系统自行处理登陆,并不算是一个真正的完整的单点登陆解决方案,但在企业内部系统整合时也存在一定的优势,即简单,子系统基本不用进行改动
阅读全文
摘要:[转]http://www.chakkaradeep.com/post/Web-Templates-and-Publishing-Sites.aspxWeb Template is one of the excellent features added to SharePoint 2010. In a very easy layman terms, Web Template helps developers to provision sites without the need of creating a site definition, but use any of the existing
阅读全文
摘要:[转]http://hi.baidu.com/taotsky/blog/item/eb74282d3ddff338359bf754.html设置网站的匿名访问一般有三种情况:一是从 已开始创建Web应用程序的时候进行匿名访问设置;二是对于已经建立的网站修改为匿名访问;三是对同一个网站分别设置验证访问和匿名访问。1.1新建一个匿名访问网站进入“SharePoint 2010管理中心”,在“管理 Web 应用程序”中,点击“新建”。创建一个端口为“7000”的Web应用程序,并在“安全性配置”的“允许匿名访问”下面选中“是”,其他选项默认。创建好Web应用程序后,在“管理中心”中”创建网站集”,选
阅读全文
摘要:[转]http://www.codeproject.com/Articles/188019/Creating-Visual-Web-Part-Properties/?display=MobileBefore reading this article, I assume you already know how to create your own WebParts in SharePoint and is looking for some way to create a property for that WebPart that you can easily Set and Get from
阅读全文

浙公网安备 33010602011771号