2011年1月5日
摘要: 这里主要说单机用户~1.使用stsadm 安装.wsp文件(MOSS常用部署命令stsadm中有介绍)2.管理中心--系统设置--管理场解决方案--找到刚刚安装的.wsp文件,点击,将其部署。若这里不能部署,可使用stsadm 命令部署(MOSS常用部署命令stsadm中有介绍)3.网站操作--网站设置--网站集功能 中,将其激活。4.OK,部署完毕,此时新建时模版中就有这个文件了。 阅读全文
posted @ 2011-01-05 14:42 Lambert_Zhao 阅读(1647) 评论(0) 推荐(0) 编辑
摘要: 以下命令须在C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN下运行,而且必须是管理员身份!常用的stsadm命令行参数有:1、installfeature、uninstallfeature:feature部署和卸载;安装feature:stsadm -o installfeature -filename [feature文件夹下]\feature.xml激活feature:stsadm -o activatefeature -filename [feature路径]\feature.xml - 阅读全文
posted @ 2011-01-05 14:35 Lambert_Zhao 阅读(696) 评论(1) 推荐(0) 编辑
摘要: //从SPListItem中取SPUser方法、代码 处理Sharepoint中的SPListItem时,有时需要获得这个对象的"Created By"(创建者),并且希望是SPUser类型,而不是string,这样可以进而得到该用户的权限、ID等等。 "Person or Group"(用户或组)对应的类型是SPFieldUser,怎么把SPFieldUser转成SPUser呢? 网上找... 阅读全文
posted @ 2011-01-05 11:58 Lambert_Zhao 阅读(2105) 评论(0) 推荐(1) 编辑
摘要: 使用代码批量删除列表项(Item)时应该注意,不要使用item.Update()方法,在删除以后统一使用List.Update()即可,否则可能引起报错,另外所有使用index来标志的都需要用for大到小循环。也可能会出错。使用for循环来代替。ps:记得 site.AllowUnsafeUpdates = true; web.AllowUnsafeUpdates = true; item.Update(); web.AllowUnsafeUpdates = false; site.AllowUnsafeUpdates = false; 阅读全文
posted @ 2011-01-05 11:54 Lambert_Zhao 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 方法一:直接绑定查询的数据或%# DataBinder.eval_r(Container.DataItem,"数据库字段")%%# DataBinder.eval_r(Container.DataItem, "ColumnName") % %# DataBinder.eval_r(Container.DataItem, "ColumnName", null) % %# DataBinder.eval_r(Container, "DataItem.ColumnName", null) %其他用法%# ((DataRowView)Container.DataItem)["Colu 阅读全文
posted @ 2011-01-05 11:38 Lambert_Zhao 阅读(766) 评论(0) 推荐(0) 编辑
摘要: using System; using System.ComponentModel; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using Microsoft.SharePoint; using Microso... 阅读全文
posted @ 2011-01-05 10:59 Lambert_Zhao 阅读(306) 评论(0) 推荐(1) 编辑
摘要: 在该站点下的配置文件里面修改以下节点(C:\inetpub\wwwroot\wss\VirtualDirectories\站点端口号\web.config)1.SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false"改为:SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDepend 阅读全文
posted @ 2011-01-05 10:55 Lambert_Zhao 阅读(756) 评论(0) 推荐(0) 编辑