文章分类 -  Moss

向Moss网站权限中中添加新用户
摘要:Moss 07中给网站权限里新增用户 SPRoleDefinition oRole = newWeb.RoleDefinitions["参与讨论"]; SPRoleAssignment oRoleAss = new SPRoleAssignment("NT Authority\\Authenticated Users", "", "NT Authority\\Authenticated Users", ""); oRoleAss.RoleDefinitionBindings.Add(oRole) 阅读全文
posted @ 2011-06-03 16:20 Roy Cao 阅读(320) 评论(0) 推荐(0)
Moss 2007 搜索异常
摘要:今天在moss的SSP中进行爬网,但是爬网执行了两秒钟就结束了。不可能啊,一定发生异常了。查看爬网日志,发现如下错误:The protocol handler cannot be found. Check that the handler has been installed.Google了一下,说是 SSP 的indexer 丢失。进到 Central Administration->Application Management->Check Services Enabled in this Farm 中,可以看到Office SharePoint Server Search 出 阅读全文
posted @ 2011-03-28 16:16 Roy Cao 阅读(96) 评论(0) 推荐(0)
Moss 2007搜索 简体中文的自定义词典
摘要:Moss 2007 简体中文的自定义词典 阅读全文
posted @ 2011-03-28 16:14 Roy Cao 阅读(148) 评论(0) 推荐(0)
【转】将你的Asp.NET应用程序嵌入到SharePoint
摘要:在moss中直接嵌入普通的asp.net程序方法 阅读全文
posted @ 2011-01-19 14:23 Roy Cao 阅读(134) 评论(0) 推荐(0)
【转】在SharePoint Server 2007中创建定制的用户管理模块
摘要:在SharePoint Portal Server 2003的时代,它被说得最多的一个问题就是其用户系统必须使用Active Directory,我们必须在域里面为用户创建相应的AD账号,然后才能将AD账号添加为SharePoint站点用户。如果企业已经部署了AD,那么这不会是一个多大的问题(反而会成为其一个优点),但是对于没有部署AD的企业,或者要将SharePoint站点发布到Internet上的场景,这就是一个不小的问题了。幸好SharePoint Server 2007中已经完全支持定制的用户管理模块,它使用了ASP.NET 2.0的Membership Provider机制来作为其用 阅读全文
posted @ 2011-01-19 14:20 Roy Cao 阅读(236) 评论(0) 推荐(0)
javascript 获取Moss People Editor 用户名
摘要:使用javascript 获取 people editor控件中的用户名, 检查用户名,获取错误内容 阅读全文
posted @ 2011-01-13 11:56 Roy Cao 阅读(249) 评论(0) 推荐(0)
【转】在sharepoint网站中添加普通的.aspx文件及其后台代码文件
摘要:在moss中添加aspx文件方法 阅读全文
posted @ 2011-01-05 22:06 Roy Cao 阅读(2161) 评论(0) 推荐(0)
moss job 读取配置
摘要:最近做一个项目是要在Moss 里设置一个Job,定期向用户发送邮件。而一些邮件信息则存在自定义表中,这就需要 Job 从自定义表中取出信息。数据库的链接字符串写在web.config文件中, 结果发现Job 无法读取 web.config中的连接字符串,很是郁闷。后经高人指点,原来 Job 是由 OWSTIMER.exe 这个进程进行管理的,所以读取不到宿主网站的配置。解决办法是在 12\BIN 目录下给 OWSTIMER.exe 文件单独添加一个配置文件 OWSTIMER.exe.config, 就可以了,呵呵代码 阅读全文
posted @ 2010-12-24 14:59 Roy Cao 阅读(118) 评论(0) 推荐(0)
MOSS自定义计时器作业
摘要:1)编写计时器程序 建一个类库,命名为EventCheckTimer,代码如下:using System;using System.Collections.Generic;using System.Text;using Microsoft.SharePoint;using Microsoft.SharePoint.Administration; namespace EventCheckTimer{ class EventCheckTimer : SPJobDefinition { public EventCheckTimer() : base() { } public EventCheckT 阅读全文
posted @ 2010-12-21 10:18 Roy Cao 阅读(199) 评论(0) 推荐(0)
解决 moss content editor webpart 在 Rich Text Editor模式下 弹出脚步错误
摘要:Moss 自带的Content Editor Webpart 如果在Html Source中存在javascript事件,如以下Html:代码则在切换到Rich Text Editor 模式下,鼠标移至Td中会弹出脚步错误:解决办法是 改用 js 注册事件,Html 如下:代码 阅读全文
posted @ 2010-11-15 22:27 Roy Cao 阅读(145) 评论(0) 推荐(0)