博客园  :: 首页  :: 新随笔  :: 联系 :: 管理

2011年5月9日

摘要: By using “Content Editor Web part” we can display PDF File in SharePoint site.1.Add a “Content Editor Web part” to your SharePoint page.2.Click on the “Open the Tool Pane”, click on “Source Editor” to place the HTML source.3.Place the following piece of code in to the Source Editor and click ok<e 阅读全文

posted @ 2011-05-09 17:02 木头人Ricky 阅读(191) 评论(0) 推荐(0) 编辑

2011年4月29日

摘要: using(SPWebospWeb=SPContext.Current.Web){//...Logic}Pageerror “Trying to use an SPWeb object that has been closed or disposed and is no longer valid.”Modified the code as shown below:using(SPSite spSite=new SPSite(SPContext.Current.Web.Url)){using (SPWeb spWeb = spSite.OpenWeb()){//...Logic}}MSDN cl 阅读全文

posted @ 2011-04-29 15:06 木头人Ricky 阅读(289) 评论(0) 推荐(0) 编辑

2011年4月2日

摘要: SPRoleAssignmentCollectionras=list.RoleAssignments;foreach(SPRoleAssignmentrainras){.....SPRoleAssignmentnewRoleAssignment=newSPRoleAssignment((SPPrincipal)list.ParentWeb.EnsureUser("domain\user"));SPRoleDefinitionnewRoleDefinition=list.ParentWeb.RoleDefinitions["参与"];newRoleAssi 阅读全文

posted @ 2011-04-02 17:33 木头人Ricky 阅读(721) 评论(0) 推荐(0) 编辑

2011年3月26日

摘要: 课程名称讲师姓名视频下载•ASP.NET MVC2程序开发入门到精通系列课程(1):MVC架构概述苏鹏•ASP.NET MVC2程序开发入门到精通系列课程(2):MVC范例分享苏鹏•ASP.NET MVC2程序开发入门到精通系列课程(3):MVC中的View实现技巧(上)苏鹏•ASP.NET MVC2程序开发入门到精通系列课程(4):MVC中的View实现技巧(下)苏鹏•ASP.NET MVC2程序开发入门到精通系列课程(5):MVCRoute和urls苏鹏•ASP.NET MVC2程序开发入门到精通系列课程(6):深入理解ROUTES苏鹏•ASP.NET MVC2程序开发入门到精通系列课程( 阅读全文

posted @ 2011-03-26 23:24 木头人Ricky 阅读(1269) 评论(0) 推荐(1) 编辑

2011年3月24日

摘要: string[]strs={"yyy","xxx",...};Array.Sort(strs);stringstrv="xxx";intn=Array.BinarySearch(strs,strv);if(n>=0)existelsenoexist调用BinarySearch方法之前,必须对array排序! 阅读全文

posted @ 2011-03-24 01:33 木头人Ricky 阅读(625) 评论(0) 推荐(0) 编辑

2011年2月28日

摘要: <inputtype=\"button\"value=\"第一行&#13;&#10;第二行\"/> 阅读全文

posted @ 2011-02-28 13:08 木头人Ricky 阅读(1148) 评论(0) 推荐(0) 编辑

2010年11月18日

摘要: 新建一个GUID实例 自定义格式字符串“b”传递给该实例的 ToString 方法, 则 Convert.ToString 的重载返回该实例的值的二进制(基 2)字符串表示形式Guid.NewGuid().ToString("n") ="4546a166b64746f784099789ec8f8324" Guid.NewGuid().ToString("b")="{4546a166-b647-46f7-8409-9789ec8f8324}" Guid.NewGuid().ToString("d" 阅读全文

posted @ 2010-11-18 13:52 木头人Ricky 阅读(2075) 评论(0) 推荐(0) 编辑

2010年11月5日

摘要: 多用户使用同一测试机进行SharePoint开发时,发现只有Administrator用户可以正确的部署程序集到SharePoint,其他用户即使加到管理员组中也无法部署,VisualStudio2010部署时,提示错误:部署步骤“回收 IIS 应用程序池”中出现错误: 本地 SharePoint 服务器不可用。请检查该服务器是否正在运行并连接到 SharePoint 服务... 阅读全文

posted @ 2010-11-05 13:57 木头人Ricky 阅读(3856) 评论(1) 推荐(0) 编辑

2010年11月4日

摘要: 需要安装“桌面体验”功能,服务管理器->功能->添加功能->桌面体验(需要重启)。然后,确保网络客户端服务是运行的。你可以设置启动类型为自动启动。问题没有解决,继续这一步:打开IIS管理器,定位到你的Web应用程序->网站->模块(双击)-> 找到“WebDAVModule”将其删除。good luck!!!详细原... 阅读全文

posted @ 2010-11-04 17:36 木头人Ricky 阅读(1253) 评论(0) 推荐(0) 编辑

2010年10月29日

摘要: C:\windows\system32\inetsrv\appcmd.exe list wp 阅读全文

posted @ 2010-10-29 09:31 木头人Ricky 阅读(321) 评论(0) 推荐(0) 编辑