随笔分类 -  Sharepoint

摘要:<script language="JavaScript" type="text/javascript">var topPagingCell = document.getElementById("topPagingCellWPQ2"); var bottomPagingCell = document.getElementById("bottomPagingCellWPQ2"); i... 阅读全文
posted @ 2009-12-08 18:17 StarWang 阅读(309) 评论(0) 推荐(0) 编辑
摘要:private void BindFirstApply() { using (SPWeb web = SPControl.GetContextSite(Context).OpenWeb()) { DataTable ownerTable = Make_Table(); foreach (SPUser user in web.SiteUsers) { for (int i = 0; i < ... 阅读全文
posted @ 2009-11-23 11:18 StarWang 阅读(227) 评论(0) 推荐(0) 编辑
摘要:今天在服务器上打开SharePoint管理中心创建Web应用程序,创建过程中突然出现错误信息,创建过程被中断,页面提示——异常来自 HRESULT:0x80070094。于是习惯性打开IIS和事件查看器想看看出现了什么错误,IIS打开无内容,而且连接不到当前服务器,事件查看器中出现如下错误信息: 经询问同事,说这个问题出现很久了,一直没有解决,每次都是在重启IIS后,立刻打... 阅读全文
posted @ 2009-11-18 14:07 StarWang 阅读(682) 评论(0) 推荐(0) 编辑
摘要:[代码]不过这边需要注意的是,比如你想把一个单文本的转换为一个多文本的增强型,得现把SPFieldType从Text转到Note,再做处理 阅读全文
posted @ 2009-11-11 17:03 StarWang 阅读(191) 评论(0) 推荐(0) 编辑
摘要:我们在做webpart开发的时候,对于日期型类型,如何才能做出像ajax中Calendar控件那样的效果呢?这个问题困扰了我好长一段时间,功夫不负有心人哈,终于找到解决方案了;以下是我的解决步骤:1.先把js文件拷贝到C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS文件下... 阅读全文
posted @ 2009-11-11 16:40 StarWang 阅读(325) 评论(0) 推荐(0) 编辑
摘要:Server Error in '/' Application. Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request... 阅读全文
posted @ 2009-11-10 14:54 StarWang 阅读(1057) 评论(0) 推荐(0) 编辑
摘要:以系统账号的权限进入,点击Site Actions -->Site Settings-->Modify All SiteSettings-->Master Pages and page layouts--> Settings--> Document Library Settings -->Permissions for this document library... 阅读全文
posted @ 2009-11-10 10:45 StarWang 阅读(219) 评论(0) 推荐(0) 编辑
摘要:创建Excel文档列表1、首先打开我的网站的Document Center子站点。   2、在Document Center子站点中,点击Site Actions,并在弹出的菜单中单击Site Settings项。  3、在Site Settings页面中,点击Site libraries and lists,即可进入Site Content页面。  4、在Site Content页面中,点击Cr... 阅读全文
posted @ 2009-11-02 17:03 StarWang 阅读(733) 评论(0) 推荐(0) 编辑
摘要:MOSS2007提供了两个内置的搜索:一个是用来搜索当前sharepoint网站全部内容的“所有网站”标签,另一个是用来搜索人员信息的“人员”标签。爬网搜索:1.启动搜索服务:管理中心——》操作——》服务器上的服务2.启动 Office SharePoint Server 搜索 方法:点击操作列的启动3... 阅读全文
posted @ 2009-11-02 16:43 StarWang 阅读(482) 评论(0) 推荐(0) 编辑
摘要:private void BindOwner() { using (SPSite site = new SPSite(siteurl)) { using (SPWeb web = site.OpenWeb()) { DataTable ownerTable = Make_Table(); foreach (SPUser user in web.SiteGroups["Owner"].Users) ... 阅读全文
posted @ 2009-11-02 15:28 StarWang 阅读(157) 评论(0) 推荐(0) 编辑
摘要:列表:实现大类与小类的联动性 private void BindIncidentCategory() { using (SPSite site = new SPSite(rootsiteurl)) { using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists["IncidentCategory"]; SPListItemCollect... 阅读全文
posted @ 2009-11-02 15:25 StarWang 阅读(263) 评论(0) 推荐(0) 编辑
摘要:using(SPSite site=new SPSite(siteurl)){  using(SPWeb web=site.OpenWeb())  {    SPList list=web.Lists[listname];    SPView spview=list.Views[viewname];    foreach(SPListItem listitem in list.GetItems(s... 阅读全文
posted @ 2009-11-02 15:14 StarWang 阅读(278) 评论(0) 推荐(0) 编辑
摘要:private string GetUser(string user) { return user.Substring(user.IndexOf('#') + 1); } 阅读全文
posted @ 2009-11-02 13:54 StarWang 阅读(220) 评论(0) 推荐(0) 编辑
摘要:当要更新记录时出现The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.的错误设置:site.AllowUnsafeUpdates = true; web.AllowUnsafeUpdates =... 阅读全文
posted @ 2009-10-30 15:46 StarWang 阅读(271) 评论(0) 推荐(0) 编辑
摘要:绑定类型为People and group private void BindOwner() { using (SPSite site = new SPSite(siteurl)) { using (SPWeb web = site.OpenWeb()) { DataTable ownerTable = Make_Table(); foreach (SPUser user in web.SiteG... 阅读全文
posted @ 2009-10-30 09:01 StarWang 阅读(267) 评论(0) 推荐(0) 编辑
摘要:问题:在进行WebParts开发的时候经常出现情况是:正在开发的Webparts放到某个页面里(比如/siteurl/default.aspx)进行调试,引发意想不到的ERROR导致整个网页无法浏览;解决方案:其实MOSS给我们准备了一个方便快捷的方法,只需要 在WebParts所在页面的URL后加上"?contents=1"就可以很快的进到WebParts管理页面了。比如,WebParts是配置... 阅读全文
posted @ 2009-10-19 16:07 StarWang 阅读(186) 评论(0) 推荐(0) 编辑
摘要:"The system cannot find the file specified" error message when you try to connect to a Terminal Server that is located on a Small Business Server 2003 domain问题:当您尝试建立一个终端服务器会话到Microsoft Windows Server... 阅读全文
posted @ 2009-10-14 13:41 StarWang 阅读(17572) 评论(0) 推荐(2) 编辑
摘要:先看看SPGridView能实现的效果:1)分组,分页2)下拉菜单 3)过滤以上效果是不是跟系统的列表一模一样?SPGridView继承于GrieView,拥有GridView的所有功能,并扩展了以上功能。下面讲述SPGridView的两种用法:采用自定义数据源和采用WSS的列表作为数据源。利用SPGridView显示自定义数据源Step1:新建一个页面,写入如下内容: Code highligh... 阅读全文
posted @ 2009-10-14 10:12 StarWang 阅读(513) 评论(0) 推荐(1) 编辑
摘要:1.安装ASPAJAXExtSetup(ASP.NET Ajax扩展)2.安装ASPNETAJAXVS2008(VS 2008 Ajax扩展,如果是VS2005那就装2005对应的,这两个都可以在http://ajax.asp.net/下载最新版本)3.安装Quickpart(http://www.codeplex.com/smartpart )或Smartpart(http://www.code... 阅读全文
posted @ 2009-10-14 00:58 StarWang 阅读(320) 评论(0) 推荐(0) 编辑
摘要:using (SPSite site=new SPSite(siteurl)) { using(SPWeb web=site.OpenWeb()) { try { SPList list = web.Lists["ServiecesInfo"]; SPFieldChoice spcustomerlocation = new SPFieldChoice(list.Fields, "CustomerL... 阅读全文
posted @ 2009-10-13 19:48 StarWang 阅读(416) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示