随笔分类 -  moss

摘要:[转]http://sharepointchick.com/archive/2010/03/26/deploying-a-custom-master-page-in-sharepoint-2010.aspxLately I’ve been playing around with Visual Studio 2010 tools for SharePoint. I’ve been trying to come up with examples on how to use each of the available item templates. Today I created a Module. 阅读全文
posted @ 2011-08-03 17:49 小师傅 阅读(290) 评论(0) 推荐(0)
摘要:SharePoint 2010 Service ArchitectureSharePoint 2010 Logical ArchitectureSharePoint 2010 Architecture and Design ModelsSharePoint 2010 Performance and Capacity Case StudiesSharePoint 2010 Capacity PlanningSharePoint 2010 Cache StrategiesSharePoint 2010 DatabasesSharePoint 2010 Physical TopologySimple 阅读全文
posted @ 2011-08-01 16:34 小师傅 阅读(340) 评论(0) 推荐(0)
摘要:[转]http://blog.csdn.net/ghj1976/article/details/4003370网络负载平衡采用一种完全分布式的算法,根据传入客户端的 IP 地址和端口,以统计方式将其映射到群集主机。此进程的发生不需要主机间进行任何通信。当发现到达的数据包时,所有主机同时执行这种映射,以快速确定哪个主机应当处理这个程序包。这种映射一直保持不变,直到群集主机数发生更改时为止。与集中式负载平衡应用程序相比,网络负载平衡筛选算法处理数据包的效率更高,因为前者必须修改和重新传送数据包。如下图:请求发送到所有NLB主机只有一台主机会处理,其他主机丢弃这个请求。此进程的发生不需要主机间进行任 阅读全文
posted @ 2011-07-24 23:40 小师傅 阅读(302) 评论(0) 推荐(0)
摘要:[转]http://ruudheemskerk.net/archive/2010/08/03/helpful-sharepoint-javascript-functions.aspxThe init.js and core.js JavaScript files in the layouts directory of SharePoint 2007 contain a lot of helpful JavaScript functions. Here is a brief list of some of the most helpful classes, functions and varia 阅读全文
posted @ 2011-07-05 00:06 小师傅 阅读(239) 评论(0) 推荐(0)
摘要:[转] http://blog.joycode.com/erucy/archives/2010/09/20/116073.joySharePoint 2010中对列表的日历视图有了极大的改进,之前曾经简单写过一篇blog进行了一些简单介绍。新的日历视图的渲染方式与之前完全不同,采用了AJAX后台加载、JavaScript渲染的机制,极大的提高了日历的显示效率(在SharePoint 2007的时候日历渲染是非常非常慢的)。不过也正是因为所有的日历都是使用AJAX加载、然后用JavaScript进行显示的,这也导致了对日历样式的控制变得更加复杂。最近某个客户有这样一个需求:希望能够在日历视图中, 阅读全文
posted @ 2011-06-05 01:08 小师傅 阅读(271) 评论(0) 推荐(0)
摘要:在一个客户的case中遇到需要在SharePoint Calendar试图里面根据一定的规则来显示或者隐藏记录,为了取得记录的handle,可以通过超链接选择器来查找,语法规则如下:$('a[href$="ABC"]')...支持的选择方式如下:= 判断完全相符;!= 不相符;^=以某字符串开头;$=以某字符串结尾;*=包含某字符串。进一步,可以通过$('a[href$="ABC"]:first')返回结果集中的第一条记录如果需要遍历结果集:view sourceprint?1$('a[href*=/Lists/B 阅读全文
posted @ 2011-06-02 00:31 小师傅 阅读(217) 评论(0) 推荐(0)
摘要:1. 在SharePoint 2007中创建一个新的web application,在web application中创建一个site collection2. 在site collection中创建一个Shared Document Library,上传文档3. 在SharePoint SSP 管理中心创建一个新的content source,只包含新建的web application,然后进行爬网4. 创建Shared Search Scope,并添加rule5.将search scope添加到site collection的display group中6. 在首页添加search box 阅读全文
posted @ 2011-05-24 23:59 小师傅 阅读(158) 评论(0) 推荐(0)
摘要:Summary: Microsoft Scripting Guys guest blogger Niklas Goude discusses using Windows PowerShell cmdlets to manage lists, views, and items in SharePoint 2010. Hey, Scripting Guy! How do I manage lists, views, and items using Windows PowerShell and SharePoint?-- NG Hello NG, Microsoft Scripting Guy Ed 阅读全文
posted @ 2011-05-14 15:25 小师傅 阅读(419) 评论(0) 推荐(0)
摘要:在几乎所有SharePoint网站的母版页中,经常都包含了顶部Logo、顶部导航、左侧导航、页面边框等等内容,当然最主题的部分还是ID为“PlaceHolderMain”的一个ContentPlaceHolder,所有的页面主要内容都呈现在这个容器中。在有些情况下,我们经常会需要去掉那些周围的内容,而在页面中只呈现这个主要区域的内容,一些典型的应用场景包括:在类似对话框的弹出窗口中,把页面嵌入到一个iframe中,等等。在SharePoint 2010里面,我们可以很简单地在页面的Url地址之后加上一个“IsDlg=1”,SharePoint自己就会去掉那些周围的元素,只显示PlaceHold 阅读全文
posted @ 2011-04-29 16:22 小师傅 阅读(217) 评论(0) 推荐(0)
摘要:在我们基于SharePoint 2007/2010进行扩展和自定义开发的过程中,我们可能会遇到这样的需求:根据当前登录的用户,为该用户加载起个性化的母版页。下面就来介绍实现这一需求的过程。1. 使用 UserControl刚得到这一需求的时候,首先想到的是创建一个UserControl,这UserControl里进行母版页的切换。经过测试,这是行不通的,尽管我们可以在这里面实现对页面样式的修改,但我们不能切换母版页了。这是因为,一旦ASP.NET页面生命周期过了OnInit后,母版页(Master Page)就被锁住并且不能更改了。2. 使用HttpModule这是我们实现母版页切换最常用的方 阅读全文
posted @ 2011-04-18 23:31 小师傅 阅读(460) 评论(0) 推荐(0)
摘要:在MOSS中后台管理的页面都是Application Page,比如网站设置的页面(settings.aspx)就是典型的Application Page,它不能被Sharepoint Desiger定制。如果我们要修改只能手动的使用其他工具来修改,我们也可以添加Application Page,必须放在C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS目录下,它对应的虚拟路径为_layouts。所有的Application Page都使用application.mas 阅读全文
posted @ 2011-03-27 23:53 小师傅 阅读(255) 评论(0) 推荐(0)
摘要:这里的表单指的是列表默认的新建界面和编辑界面,在点击“确定”之后实际上是可以触发一段我们自定义的代码的,比如跳转页面、做一些其他操作等事情。(虽然跳转页面可以通过url中的Source来做,但是我们往往需要跳转时url加上当前列表条目的ID,不过新建页面中是拿不到条目ID的……)添加表单事件的方法很容易,不过没有见到网上有任何文章说这件事 -.-在SPFormContext中使用OnSaveHandler属性就可以挂载一个EventHandler了,所以我们可以在表单页面中加入如下代码(通过WebPart或者自定义字段):1 protected override void OnInit(Eve 阅读全文
posted @ 2011-03-20 00:02 小师傅 阅读(228) 评论(0) 推荐(0)
摘要:正如你所知道的,事件接收器(EventHandler)非常强大,可以挂在许多SharePoint事件上。它们可以应用于功能(Feature)事件,如FeatureActivated,列表事件,如FieldAdded,等等。然而,其中我们最常用的还是SPItemEventReceiver中的一系列接收器。通过继承该类,我们可以把自己的代码挂接在列表项或文档库文档上发生的一系列事件上。当你利用这些事件时,就很快会发现存在前(同步)后(异步)两种事件。其方法的后缀分别为“ing”(比如,ItemAdding)和“ed”( 阅读全文
posted @ 2011-02-13 20:22 小师傅 阅读(177) 评论(0) 推荐(0)
摘要:Creating global calendar that shows data from different calendars is something that SharePoint doesn’t have out-of-box. Using site data query and calendar view control we can easily create global calendar and make it show data from lists we want. Before you start you should create two calendars to 阅读全文
posted @ 2011-01-04 22:58 小师傅 阅读(397) 评论(0) 推荐(0)
摘要:SPFieldRatingScale================================Below code snippet renders SharePoint survey results as Pie chart using Telerik chart control: using System;using System.Collections.Generic;using System.Text;using System.Web;using System.Drawing;using System.Runtime.InteropServices;using System.Web 阅读全文
posted @ 2010-12-07 21:08 小师傅 阅读(268) 评论(0) 推荐(0)
摘要:Imagine a remote application that uses SharePoint Web Services to retrieve a list item’s attachments to perform some action on them or provide a link to them. This application could have been coded in WSS 2.0 using a mix of the GetListItems and GetAttachmentCollection methods of the Lists Web Servic 阅读全文
posted @ 2010-12-07 21:06 小师傅 阅读(310) 评论(0) 推荐(0)
摘要:In this article we will see how to implement client side validation in SharePoint list with out using SharePoint designer.For this follow the below steps找到需要有效性验证的页面,如NewForm.aspx或者EditForm.aspx在URL后面... 阅读全文
posted @ 2010-11-28 22:22 小师傅 阅读(169) 评论(0) 推荐(0)
摘要:前言最近的一个项目需要在MOSS 2007中嵌入Silverlight报表,而Silverlight报表则需要开发相应的WebService作为数据源,而这个从MOSS列表中获取数据的Web Service则要以自定义WebService的方法部署在MOSS站点中。园子里几位前辈在若干年前已经写过一些在MOSS中部署自定义WebService的方法(如:文章一,文章二),但可能是MOSS版本不同的... 阅读全文
posted @ 2010-11-28 16:46 小师傅 阅读(304) 评论(0) 推荐(0)
摘要:大部分的参考是来自MSDN: http://msdn.microsoft.com/en-us/library/exchangewebservices(EXCHG.80).aspx 2007版的Exchange服务器提供了webservice,我们可以方便的在.NET程序中添加该引用,然后就可以方便的实现邮件的抓取,发送,删除等功能。我测试是在控制台程序中使用该webservice,步骤如下: 1 ... 阅读全文
posted @ 2010-11-14 11:28 小师傅 阅读(752) 评论(0) 推荐(0)
摘要:In this post, I’ll show you how to customize the Quick Launch menu to display several levels of data in a dynamic way and use this customized menu for quick access to all Views within a List wit... 阅读全文
posted @ 2010-11-07 12:36 小师傅 阅读(264) 评论(0) 推荐(0)