01 2011 档案
名词收集
摘要:此帖手机常见名词。缩写、全拼、含义、出处、典故等。 阅读全文
posted @ 2011-01-13 10:58 Lambert_Zhao 阅读(221) 评论(2) 推荐(0)
JS获取URL的值
摘要:假设当前页面URL为:http://localhost:30641/test/Default2.aspx?id=A利用JS获取这个A,(strid就是A) 阅读全文
posted @ 2011-01-07 18:20 Lambert_Zhao 阅读(1447) 评论(2) 推荐(0)
.wsp文件的部署
摘要:这里主要说单机用户~1.使用stsadm 安装.wsp文件(MOSS常用部署命令stsadm中有介绍)2.管理中心--系统设置--管理场解决方案--找到刚刚安装的.wsp文件,点击,将其部署。若这里不能部署,可使用stsadm 命令部署(MOSS常用部署命令stsadm中有介绍)3.网站操作--网站设置--网站集功能 中,将其激活。4.OK,部署完毕,此时新建时模版中就有这个文件了。 阅读全文
posted @ 2011-01-05 14:42 Lambert_Zhao 阅读(1678) 评论(0) 推荐(0)
MOSS常用部署命令stsadm (转)
摘要:以下命令须在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 阅读(720) 评论(1) 推荐(0)
SharePoint中的"用户或用户组"栏
摘要://从SPListItem中取SPUser方法、代码 处理Sharepoint中的SPListItem时,有时需要获得这个对象的"Created By"(创建者),并且希望是SPUser类型,而不是string,这样可以进而得到该用户的权限、ID等等。 "Person or Group"(用户或组)对应的类型是SPFieldUser,怎么把SPFieldUser转成SPUser呢? 网上找... 阅读全文
posted @ 2011-01-05 11:58 Lambert_Zhao 阅读(2119) 评论(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 阅读(402) 评论(0) 推荐(0)
GridView 模板列中的数据绑定
摘要:方法一:直接绑定查询的数据或%# 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 阅读(789) 评论(0) 推荐(0)
一个简单的欢迎webpart
摘要: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 阅读(318) 评论(0) 推荐(1)
Sharepoint 2010 显示详细错误
摘要:在该站点下的配置文件里面修改以下节点(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 阅读(777) 评论(0) 推荐(0)