随笔分类 -  SharePoint

SharePoint,MOSS
摘要:new in office 365, Sharepoint online 2013:http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1052 阅读全文
posted @ 2013-04-18 15:08 大刀客 阅读(196) 评论(0) 推荐(0)
摘要:VS2012 离线开发SharePoint 2013配置:http://blogs.msdn.com/b/timquin/archive/2013/01/22/setting-up-visual-studio-2012-for-sharepoint-2013-development-offline.aspx 阅读全文
posted @ 2013-04-17 17:01 大刀客 阅读(152) 评论(0) 推荐(0)
摘要:转自:http://blog.joycode.com/kaneboy/archives/2011/04/30/116195.joy什么是搜索范围?当我们使用百度的时候,就能看到它们。为了帮助用户更精确的找到自己想要的内容,可以定义一些搜索范围,这样用户通过使用搜索范围,就能告诉搜索引擎,自己想要搜索的内容的范围,以得到更精准的结果。SharePoint Server 2010内置的搜索功能也支持搜索范围。SharePoint 2010已经内置定义好了两个搜索范围:“所有网站”和“人员”。前者包括所有内容源中的所有内容,后者则只包含了所有用户(来自于用户配置文件)。如果需要,管理员也可以添加额外 阅读全文
posted @ 2013-04-07 12:01 大刀客 阅读(292) 评论(0) 推荐(0)
摘要:Technet上的介绍。http://technet.microsoft.com/zh-cn/subscriptions/ee832800(v=office.14).aspx 阅读全文
posted @ 2013-03-13 13:55 大刀客 阅读(172) 评论(0) 推荐(0)
摘要:How to enable "Custom Report" automatically for Web AnalyticsWebanalyticscustomizereportscapabilitymissingOption1:-- =====================-- Helpdesk Template-- =====================-- Install feature-- =====================stsadm -o installfeature -filenameDataConnectionLibrary\Feature.xm 阅读全文
posted @ 2013-03-05 09:49 大刀客 阅读(248) 评论(0) 推荐(0)
摘要:在web application的web.config下找到<system.web>节点,添加如下代码:<browserCaps><result type="System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> <filter>isMobileDevice=false</filter></browserCaps&g 阅读全文
posted @ 2012-09-17 10:04 大刀客 阅读(263) 评论(0) 推荐(0)
摘要:StepsSharepoint designer打开网站点击左侧External Content Types点击右上角External Content Type按钮点击new external content type新建一个外部内容类型输入Name e-type,点击下面链接查找datasource点击Add Connection,选择数据源类型(本例选择Sql Server)输入数据库服务器,名称等,下面复选框的数据选择一个(如果需要以后可以改)。本例使用了secre store service(sss),关于三个复选框,参考:http://technet.microsoft.com/li 阅读全文
posted @ 2012-06-29 18:26 大刀客 阅读(597) 评论(0) 推荐(0)
摘要:SharePoint中的WebPart是一大特色,通过WebPart可以很方便的设计一个页面的内容、布局;通过个性化页面可以定制自己喜欢的页面,这里介绍一下个性化中要用到的几个操作方法。MSOWebPartPage_RestorePageDefault(),Javascript脚本,用于重置网页内容,将此网页上的 Web 部件重置为默认值。MSOLayout_ChangeLayoutMode(bool),Javascript脚本,用于将当前页面切换为编辑模式,需要传入bool类型的参数,bool=false时,切换为共享试图的编辑页面,bool=true时,切换为个人视图的编辑页面。 阅读全文
posted @ 2012-06-07 15:08 大刀客 阅读(268) 评论(0) 推荐(0)
摘要:<%@ Page language="C#" Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %>改为<%@ Page language="C#" Inherits="Microsoft.SharePoint.WebPartPages.W 阅读全文
posted @ 2012-06-04 15:22 大刀客 阅读(160) 评论(0) 推荐(0)
摘要:右键点项目选Unload project再右键点项目选编辑项目在visual studio会以XML格式显示该项目文件找第一个PropertyGroup节点在<SandboxedSolution>False</SandboxedSolution>的下一行加<TokenReplacementFileExtensions>$(TokenReplacementFileExtensions);ashx;xml;aspx;ascx;webpart;dwp;svc;asmx;</TokenReplacementFileExtensions>,这能够保证兼容原 阅读全文
posted @ 2012-05-20 10:45 大刀客 阅读(225) 评论(0) 推荐(0)
摘要:SharePoint的dll部署在GAC下,而不是在网站的bin下,在开发SharePoint相关页面或web part时,需要在页首加上以下代码,$SharePoint.Project.AssemblyFullName$是visual studio编译时会自动替换的变量:<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>最好下面还能加上以下代码:<%@ Import Namespace="yournamespace" %>这样可以避免类型无法加载的错误,也可以 阅读全文
posted @ 2012-05-18 10:50 大刀客 阅读(321) 评论(0) 推荐(0)
摘要:public string GetAdminEmailAddress(string room) { string userEmail = string.Empty; using (SPSite site = new SPSite(Config.URL)) { using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists[Config.MeetingRoomTitle]; SPQuery query=new SPQuery(); string camlQuery = string.Format(@" <View> 阅读全文
posted @ 2012-05-17 09:38 大刀客 阅读(269) 评论(0) 推荐(0)
摘要:For changing the language of all sites in the content database to Chinese the query would be: UPDATE dbo.Webs SET Language = 2052 Changing the language of one site collection can be done with: UPDATE dbo.Webs SET Language = 2052 WHERE SiteId = [[SiteCollectionId]] And for changing the language of a 阅读全文
posted @ 2012-05-15 11:22 大刀客 阅读(120) 评论(0) 推荐(0)
摘要:错误信息:System.ArgumentException: Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page“/”应用程序中的服务器错误。 --------------------------------------------------------------------------------SPListItem 无效。提供的 SPListItem 与发布页面不兼容。 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中 阅读全文
posted @ 2012-05-08 16:25 大刀客 阅读(467) 评论(0) 推荐(0)
摘要:需要激活网站feature :SharePoint Server 发布 阅读全文
posted @ 2012-05-07 14:07 大刀客 阅读(129) 评论(0) 推荐(0)
摘要:Sample code:item["ParticipantsPicker"]=BuildMultiSPUserValue(new string[]{"user1","user2"},web);public static SPFieldUserValueCollection BuildMultiSPUserValue(string[] userValues,SPWeb web) { SPFieldUserValueCollection userCollection = new SPFieldUserValueCollection(); 阅读全文
posted @ 2012-05-04 10:20 大刀客 阅读(227) 评论(0) 推荐(0)
摘要:Objective In this article, I am going to explain, how to insert multi user or more than one user in Share point list. About SharePoint list where value would be inserted There is a list called TestingUser.There is one column in list called UserTest.This column is of type Person or Group.Allow multip 阅读全文
posted @ 2012-05-04 09:34 大刀客 阅读(342) 评论(0) 推荐(0)
摘要:public static SPUser GetSPUser(SPWeb web,string userName) { SPUser user=web.EnsureUser(userName); return user; }public static int ParseLookupId(string fieldValue,SPList list,string fieldName) { int lookUpID = 0; try { foreach (SPListItem item in list.Items) { if (item[fieldName].ToString()==fieldVa. 阅读全文
posted @ 2012-05-03 14:42 大刀客 阅读(172) 评论(0) 推荐(0)
摘要:When created a custom timer job in sharepoint 2010. I receive the famous "Object reference not set to an instance of an object" error on the very first line of the Execute() method.Using(SPsite site = spcontext.current.site.ID){using(spweb web = site.openweb()}When a timer job runs there i 阅读全文
posted @ 2012-05-02 16:19 大刀客 阅读(298) 评论(0) 推荐(0)
摘要:To enable the mobile view feature, you've to run this command on the Sharepoint/MOSS server:stsadm -o activatefeature -name MobilityRedirect -URL http://yourSiteURL , where yourSiteURL is the URL address of your Sharepoint site.Now you're ready to go mobile, simply by browsing the url http:/ 阅读全文
posted @ 2012-04-30 23:45 大刀客 阅读(165) 评论(0) 推荐(0)