2008年3月17日
摘要: 代码 public string GetGroupList() { string tmpstr = ""; using (SPSite site = new SPSite(SPContext.Current.Site.ID)) { using (SPWeb thisWeb = site.OpenWeb("attend"... 阅读全文
posted @ 2008-03-17 18:04 晃晃悠悠 阅读(106) 评论(0) 推荐(0)
  2008年3月14日
摘要: 把 !IsPostBack 写成 this.Page.IsPostBack==false 就行了 阅读全文
posted @ 2008-03-14 17:06 晃晃悠悠 阅读(121) 评论(0) 推荐(0)
摘要: 最近一些朋友,都问我关于ad 和moss 用户 管理注册的一些问题,其实很简单, 直接把ad 加入 到moss 然后分配权限 就ok,下面是我的代码,发出来给大家参考。 有不足的地方,希望大家批评! 下面的代码是把 ad 里面的用户加入到moss 网站 ,然后分配权限 using System; using System.Data; using System.Configuration; u... 阅读全文
posted @ 2008-03-14 11:39 晃晃悠悠 阅读(243) 评论(0) 推荐(0)
  2008年3月11日
摘要: exec sp_change_users_login 'update_one','user_admin','user_admin' 调用这个存储过程就搞定了 阅读全文
posted @ 2008-03-11 12:31 晃晃悠悠 阅读(248) 评论(0) 推荐(0)
  2008年3月10日
摘要: using System.DirectoryServices; --先应用 --添加用户 DirectoryEntry entry = new DirectoryEntry(BaseFunctions.DomainSrv,HttpContext.Current.Session["username"].ToString(),HttpContext.Current.Session["passwo... 阅读全文
posted @ 2008-03-10 11:06 晃晃悠悠 阅读(1421) 评论(2) 推荐(0)
摘要: The System.DirectoryServices namespace gives users access to some rudimentary user administration via ASP.NET. This article first reviews what the Active Directory (AD) is, then looks briefly at the a... 阅读全文
posted @ 2008-03-10 10:14 晃晃悠悠 阅读(277) 评论(0) 推荐(0)
  2008年3月5日
摘要: sharepoint2003的webpart与sharpoint2007的webpart制作有所区别。这里主要讲sharpoint2007的webpart制作。 步骤: 1、安装vs2005. 2、安装webpart模板:VSeWSS.exe 3、创建项目,选择web part.如下图: 4、创建完成后,会自动生成如下代码: Code highlighting produced by Ac... 阅读全文
posted @ 2008-03-05 17:37 晃晃悠悠 阅读(247) 评论(0) 推荐(0)
摘要: 前台使用这样的格式绑定数据就可以了 阅读全文
posted @ 2008-03-05 13:04 晃晃悠悠 阅读(338) 评论(0) 推荐(0)
摘要: 修改web.config中的 阅读全文
posted @ 2008-03-05 11:34 晃晃悠悠 阅读(218) 评论(0) 推荐(0)
  2008年2月27日
摘要: 用命令备份和还原的,不同的机器间迁移也可以. 进入 C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN Stsadm -o backup -url http://sps-jsb:80 -filename d:\backup\sps-backup-2007-3-28.bak -overwrit... 阅读全文
posted @ 2008-02-27 18:40 晃晃悠悠 阅读(157) 评论(0) 推荐(0)