随笔分类 -  SharePoint 2010 文章

1

自己项目中用到的,提炼出来的!
SharePoint 2010/SharePoint 2013 Custom Action: 基于Site Collection 滚动文字的通知.
摘要:应用场景: 有时候我们的站点需要在每个页面实现滚动文字的通知,怎么在不修改Master Page的情况下实现这个功能?我们可以使用Javascript 和 Custom Action 来实现。 创建一个Custom Action。主要使用到 Location = 'ScriptLink' 属性, 该 阅读全文

posted @ 2016-10-02 21:54 张大明 阅读(293) 评论(0) 推荐(0)

Add ContentType to pages library
摘要:public override void FeatureActivated(SPFeatureReceiverProperties properties) { List<string> listContentType = new List<string>(); listContentType.Add("CT_TestContentType1"); listContentType.Add("CT_TestContentType2"); SPSite currentSite = (SPSite)p... 阅读全文

posted @ 2012-09-19 22:35 张大明 阅读(179) 评论(0) 推荐(0)

About Sandboxed Solution Deployment
摘要:Exception from HRESULT:0x81070966 阅读全文

posted @ 2012-08-13 22:39 张大明 阅读(197) 评论(0) 推荐(0)

SharePoint 201 ListViewByQuery Control 应用
摘要:学习MSDN视频教程,没有源代码,自己按照视频上的demo测试的地址:http://msdn.microsoft.com/zh-cn/sharepoint/ee513147.aspx [ToolboxItemAttribute(false)] public class Bonnevlie_StandardWP : WebPart { ListViewByQuery MyCustomView; protected override void CreateChildControls() { SPWeb thisWeb... 阅读全文

posted @ 2012-02-19 21:02 张大明 阅读(267) 评论(0) 推荐(0)

SharePoint 2010 Provisioning A New Farm with PowerShell
摘要:Resource URL:http://blogs.msdn.com/b/ekraus/archive/2009/11/06/sharepoint-2010-provisioning-a-new-farm-with-powershell.aspx 阅读全文

posted @ 2011-11-18 10:46 张大明 阅读(137) 评论(0) 推荐(0)

使用stsadm.exe命令行删除,创建站点
摘要:在SharePoint中,如何做到创建站点集后,在第一次进入站点的时候选择站点模板?答案是用命令行进行创建,不需要指定站点模板。备份站点:stsadm.exe –o backup –url <site url> -filename <storage path.dat> -nositelock删除站点:stsadm.exe –o deletesite –url <site url>创建站点:stsadm.exe -o createsite -url <host auth/pub url> -owneremail <someone@xyz.co 阅读全文

posted @ 2011-09-19 17:29 张大明 阅读(336) 评论(0) 推荐(0)

SharePoint Custom Action Identifiers
摘要:IDGroupLocationSequenceRegistrationTypeRegistrationIDTrustedPersLinksUAPOffice.Server.ServiceProvider.Administration15SspSearchAnalyticsSearchOffice.Server.ServiceProvider.Administration30SearchSettingsSearchOffice.Server.ServiceProvider.Administration10ManagePubLinksUAPOffice.Server.ServiceProvider 阅读全文

posted @ 2011-09-08 11:41 张大明 阅读(350) 评论(0) 推荐(0)

修改IIS设置延长DEBUG时间
摘要:修改IIS设置延长DEBUG时间http://www.cnblogs.com/lambertqin/archive/2011/08/30/2160018.html 阅读全文

posted @ 2011-09-01 16:04 张大明 阅读(144) 评论(0) 推荐(0)

SharePoint 2010 如何取得ListItem的Attachements
摘要:最近一个项目用到读取SharePoint ListItem的attachments ,在网上找了很多资料终于知道了如何取得一个item的attachments,记录之,已被后用。string sourceInitialName = sourceList.DefaultViewUrl.Substring(7,index-7);//取得列表名称SPListItem sourceItem = sourceList.GetItemById(SourceItemID);//取得ItemSPFolder sourceListAttFolder = sourceItem.Web.Folders[" 阅读全文

posted @ 2011-08-15 11:28 张大明 阅读(357) 评论(0) 推荐(0)

SharePoint Pagelibrary XML 修改
摘要:主要逻辑描述:从pagelibrary中下载xml到内存中,更新xml文件的值后再上传到pagelibrary,并且覆盖旧文件,并且签入,发表,审核!public void UpdateListOfPopupURL(SPWeb web, Guid ListId) { string queryString = @"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + Constants.XML_FILE_NAME + "&l 阅读全文

posted @ 2011-08-01 10:06 张大明 阅读(256) 评论(0) 推荐(0)

SPGraphviz SharePoint上创建图表,关系图
摘要:地址:http://spgraphviz.codeplex.com/http://sadomovalex.blogspot.com/http://www.cnblogs.com/Sunmoonfire/archive/2010/12/22/1855534.htmlsCodeplex上看到的SPGraphviz项目。http://spgraphviz.codeplex.com。利用SPGraphviz,你可以创建自己的图表,架构图,关系图等,并且无需编程或使用任何外部应用程序即可显示在Sharepoint中。你可以用它来显示一个组织结构,门户网站的层次结构,文件的版本历史记录的图形化表示,或项目 阅读全文

posted @ 2011-07-24 16:27 张大明 阅读(344) 评论(0) 推荐(0)

ASP.NET 缓存学习
摘要:ASP.NET 缓存在项目中的引用,如下: private staticobject _lock = newobject(); protected voidPage_Load(object sender, EventArgs e) { if (!IsPostBack) { //Set outputcache string Duration = ConfigStore.GetValue("MerckVaccine", "AboutToLeaveCache").ToString(); string URLList = ""; lock ( 阅读全文

posted @ 2011-07-20 21:21 张大明 阅读(316) 评论(0) 推荐(0)

SharePoint PowerShell 修改站点为From认证
摘要:$webApp = Get-SPWebApplication "http://cd-isbunet:82" $webApp.UseClaimsAuthentication = 1; $webApp.Update() $webApp.ProvisionGlobally()$webApp = Get-SPWebApplication "http://cd-isbunet:82" $webApp.MigrateUsers($True) 阅读全文

posted @ 2011-03-07 10:15 张大明 阅读(186) 评论(0) 推荐(0)

MOSS/Sharepoint 如何更改一台已经安装了SharePoint的服务器名称(转)
摘要:第一步:在SharePoint3.0管理中心中修改“替代访问映射”:1、进入SharePoint管理中心2、选择“操作”选项卡3、点击“替代访问映射”链接4、把访问映射链接改变成使用新的服务器名称的URL第二步:用stsadm命令中的renameserver选项:1、进入命令行操作界面(开始菜单---运行---cmd---回车)2、进入目录:C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN3、运行命令:stsadm -o renameserver -newservername newn 阅读全文

posted @ 2011-01-11 22:41 张大明 阅读(192) 评论(0) 推荐(0)

SharePoint 站点出现Http 503 错误
摘要:今天上班把域账户的密码修改了,打开站点和管理中心下我一大跳,http 503错误,下我一跳,以为又是IIS崩溃了。最后在同事的帮助下解决了,原因是域账户的密码修改后,SharePoint的安装或者管理员的密码不会同时修改,需要手动更新,更新的命令如下:stsadm -o updatefarmcredentials - userlogin domain\19007390 -password pass@word1,然后重启IIS,一切Ok!在Windows Server 2008中开发SharePoint ,很多时候需要在vs中附加进程进行调试,查看端口号的命令如下:%windir%\system 阅读全文

posted @ 2011-01-05 21:59 张大明 阅读(871) 评论(0) 推荐(0)

SharePoint 2010 列表项代码绑定附件心得 (FileUpload上传附件)
摘要:最近项目中用到在插入Item时绑定附件,可以上传多个附件,很快就写出来了,可是测试一侧老是有问题,经过多番折腾,终于算通过测试。SharePoint 2010上传附件需注意一下几点:判断文件是否为空,即文件内容什么都没有。判断文件的扩展名是否存在。判断文件名称是否包含特殊字符,参考http://support.microsoft.com/kb/894629判断文件扩展名称是否被禁用,在管理中心可设置。判断文件上传大小,SharePoint 2010 默认是50M。Code:[代码]处理上传文件的特殊符号是比较繁琐的一件事情.SharePoint自带上传文件报错为:"The file name 阅读全文

posted @ 2010-12-05 14:29 张大明 阅读(1321) 评论(0) 推荐(0)

SharePoint 2010 SPFieldLookup,SPFieldChoice更新值方法
摘要:经过多番努力终于搞定SPFieldLookup,SPFieldChoice字段在Item中如何更新值了,记下以备后用!///////////////////////////////////#region//public method/// <summary>///Returns the SPFieldLookupValue instance of a lookup value.///T... 阅读全文

posted @ 2010-11-05 15:04 张大明 阅读(767) 评论(0) 推荐(0)

(转)SharePoint WebPart生命周期
摘要:当一个包含WebPart的WSS站点页面被响应请求或者是它被提交到Server端的时候,这时WebPart生存周期开始了2. OnInit 初始化,加载相关配置文件 (如WebPart任务面板上的属性,样式等配置信息) .3. LoadViewState 返回先前最后一次被处理的状态(如webpart是展现,隐藏还是关闭)4. CreateChildControls 创建WebPart UI ,通... 阅读全文

posted @ 2010-10-26 23:20 张大明 阅读(405) 评论(0) 推荐(0)

SharePoint 2010 Visual开发Timer Job 代码调试
摘要:在使用 Visual Studio 2010 开发SharePoint 2010 时,如果开发WebPart可以直接按F5调试,如果是开发TimerJob则需要附加到进程OWSTIMER.EXE。 阅读全文

posted @ 2010-10-26 23:16 张大明 阅读(386) 评论(0) 推荐(0)

(SharePoint 2010)用户代码未处理 FileNotFoundException
摘要:Question:在Windows Server 2008 上写代码访问SharePoint 2010 站点集时报错!Error:The Web application at http://dexter-pc:81/SitePages/Home.aspx could not be found. Verify that you have typed the URL correctly. If the... 阅读全文

posted @ 2010-10-23 23:01 张大明 阅读(716) 评论(0) 推荐(1)

1

导航