上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页
摘要: 我们要完成如下逻辑,当我们向文档库中上传文件时,我们使用工作流进行检查,只有以.docx和.doc为扩展名的文件才可上传,否则会自动删除。1.我们使用VS2008进行开发。工作流设计如下图:IfElse活动的isValid的分支条件如下:this.fileExtension.ToLower() == "docx" || this.fileExtension.ToLower() == "doc"2.工作流中各个CodeActivity的代码如下:namespaceCaryFileInfo{publicsealedpartialclassWorkflow1: 阅读全文
posted @ 2011-12-06 10:31 Areas 阅读(195) 评论(0) 推荐(0) 编辑
摘要: SharePoint的文档库是根据数据库虚拟出来的,以HTTP形式呈现,因要创建一个页面单独实现上传功能,故对于其存储和呈现机制进行了学习和研究,不过网络上相关资料还真是很少。SharePoint个人觉得还是比较适合不需要进行复杂逻辑功能的二次开发的网站构建,即适合一般基于office组件的功能门户,能够极大提高效率。以下代码能够实现往文档库下层目录上传文件的功能,主要还是参考网络上其他文章usingSystem.IO;usingMicrosoft.SharePoint;usingSystem.Web;namespaceConsoleApplication1{classProgram{st.. 阅读全文
posted @ 2011-12-06 10:22 Areas 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 新公司,新工作试着用sql 存储过程写调用,所有结果都返回XML数据集,这是第一个成品,贴出来以做留念.1--=============================================2--Author:<tanke>3--Createdate:<2007-4-17>4--Description:<统计访问量和综合浏览量>5--execsp_sys_Master'<?xmlversion="1.0"encoding="unicode"?><reportaction=" 阅读全文
posted @ 2011-12-06 09:56 Areas 阅读(394) 评论(0) 推荐(1) 编辑
摘要: Sharepoint List Attachments in a Webpart : The SolutionIt's not a headache until you can do without it, but to use the sharepoint's attachment controls can be a pain in you know what. Try the solution below and save your self from same.~Adding attachment Functionality in a Web Part.//Attachm 阅读全文
posted @ 2011-12-05 11:20 Areas 阅读(360) 评论(0) 推荐(0) 编辑
摘要: How to associate a worklow to a list programmaticallyGoal of this postThis post is a good example of how to programmaticallyassociate a Workflow to a list.The workflow can be standard or designed with SharePoint Designer or Visual Studio.As a workflow is using a standard tasks listand a specific wor 阅读全文
posted @ 2011-11-30 19:47 Areas 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 有些情景我们需要在创建workflow的时候输入一些信息(注意:这里是创建,而不是启动)。当启动每个workflow的时候再输入一些信息。这样说可能有些抽象,举个实际例子:教导主任要找几个老师批改作业,那么就需要制定一些标准比如每道题多少分。假设一共 4 道题于是教导主任创建这个工作流的时候需要一些信息。类似这样:A 20,B 30,C 30 D 20。而每个老师接到自己的工作流实例的时候呢,就需要写上所修改卷子的分数(当然,需要参考教导主任给的标准)。所以,教导主任输入的信息是共用的,每个老师自己输入的是和所启动工作流相关的。对应到实际工作流里,教导主任和老师所输入数据的页面分别叫做 Ass 阅读全文
posted @ 2011-11-30 19:36 Areas 阅读(278) 评论(0) 推荐(1) 编辑
摘要: 工作流是SharePoint很重要的一部分。我写的这篇文章是通过编程的方式启动工作流。一共分两个部分:启动无参数和有参数的工作流。参考示例:http://www.sharepointkings.com/2008/09/how-to-pass-parameters-to-workflow.html首先,通过SharePoint Designer 2010针对一个文档库设计两个工作流:NameDescriptionMyWorkflow没有参数MyInitialDataWF三个参数:YourName(string); YourAge(Int); YourDate(DateTime)首先看一下无参数工 阅读全文
posted @ 2011-11-30 18:29 Areas 阅读(292) 评论(0) 推荐(0) 编辑
摘要: string tmpFieldName= tmpSPList.Fields.Add(dic.Key, SPFieldType.Text, false); var newField = tmpSPList.Fields.GetFieldByInternalName(tmpFieldName); newField.SchemaXml = newField.SchemaXml.Replace("Text", "XAttachmentField"); newField.SetCustomProperty("SiteURL", theSiteU 阅读全文
posted @ 2011-11-29 17:42 Areas 阅读(190) 评论(0) 推荐(0) 编辑
摘要: We have one problem in work, we spend with that two days without any solution, all we found cause some another problem. This is what help us when the page is not making second postback in update panel when the first postback is fired by element in UpdatePanel and refresh only update panels on the pa 阅读全文
posted @ 2011-11-29 10:36 Areas 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 大家都知道ASP.NET中GridView导出Excel的方法。在SharePoint中SPGridView是继承GridView的一个扩展控件,那么ASP.NET中的导出方法在SharePoint中也应适用。是可以用,但是有一个问题,就是第一次点击按钮导出成功后,你再次点击按钮的话,按钮就不在有用了。于是Google了一下,找到了这篇Export GridView to Excel in web part帖子解决了问题,就是在Page_Load中注册两行Javascript脚本。1protected void Page_Load(object sender, EventArgs e)2{3 阅读全文
posted @ 2011-11-29 10:33 Areas 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 三态工作流设计为通过三个状态(阶段)跟踪列表项的状态。它可用于管理要求组织跟踪大量问题或项目(如客户支持问题、销售商机或项目任务)的业务流程。三态工作流的工作方式设置用于三态工作流的列表向列表中添加三态工作流对项目启动三态工作流用三态工作流完成工作流任务三态工作流的工作方式三态工作流通过三个不同的状态和这些状态之间的两个转换,支持需要组织跟踪问题或项目状态的业务流程。每次在这些状态之间转换时,该工作流都会向用户分配任务并向该用户发送有关该任务的电子邮件通知。完成该任务后,该工作流会更新该项目的状态并进入下一状态。三态工作流设计用于“问题跟踪”列表模板,但也可以用于设置为包含“选项”栏(具有三个 阅读全文
posted @ 2011-11-29 08:57 Areas 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Create a new C# Class Library project in Visual Studio .NET. After created, add a reference toMicrosoft.SharePoint.dll and System.Web.dll. Sign your project with a new key to make your assembly strong named.PublicColumnValue.csAdd a class called PublishColumnValue and let it inherit from SPFieldMult 阅读全文
posted @ 2011-11-27 12:59 Areas 阅读(499) 评论(0) 推荐(0) 编辑
摘要: MOSS2007的自定义字段类型v3 Creating Custom Field TypesCustom field types in SharePoint 2007 are pretty darn cool. They allow you to create your own subclasses of the existing SharePoint field types. You can control pretty much every aspect of the fields behavior. Things such as how the field is displayed/re 阅读全文
posted @ 2011-11-27 12:54 Areas 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 修改WSS的控件的RenderingTemplate,可以灵活的控制表单页面的显示。以前写过几篇相关的文章:WSS3.0开发--页面定制(1)--修改列表的表单页面WSS页面定制系列(2)---定制单个列表的表单页面WSS页面定制系列(3)---重写表单的保存逻辑WSS页面定制系列(4)--利用SmartForm和用户控件定制表单页面以上几篇提到了RenderingTemplate的简单修改方法,貌似很多朋友仍然不能掌握具体的方法,就再来一篇吧。WSS里有一个类TemplateBasedControl,从这个类继承下来,控件就具有了加载模板的功能。看一下这个类的方法: Code highlig 阅读全文
posted @ 2011-11-27 12:52 Areas 阅读(239) 评论(0) 推荐(0) 编辑
摘要: In SharePoint, a site column is a reusable column definition, or template, that you can assign to multiple lists across multiple SharePoint sites. Site columns are associated to a particular Data Type. This Data Type is called a Field. For example, when you create a site column, you are also prompte 阅读全文
posted @ 2011-11-27 12:52 Areas 阅读(460) 评论(0) 推荐(0) 编辑
摘要: Hey guys , sorry for not writing this part within the same period I've written the previous 3 parts, but that because I wanted to be sure that the code is written without bugs , so in the previous 3 weeks we have tested the control very well and solved a lot of issues we have found in it , and n 阅读全文
posted @ 2011-11-25 14:48 Areas 阅读(309) 评论(0) 推荐(0) 编辑
摘要: The init.js and core.js JavaScript filesin the layouts directory of SharePoint2007 contain alot of helpful JavaScript functions. Here is a brief list ofsome of the most helpful classes, functions and variablesavailable.If you are looking for SharePoint 2010, check out the extensive ECMAScript Class 阅读全文
posted @ 2011-11-25 14:07 Areas 阅读(303) 评论(0) 推荐(0) 编辑
摘要: PRINT THISEMAIL THISREPORT THISJoin Now!SharePoint is Flowers and Rainbows and UnicornsSPGridView, SPMenuField, Grouping, PostbackUsing the SPGridView and SPMenuField objects go a long way to encapsulate the functionality and look & feel of SharePoint into your custom controls, pages and web par 阅读全文
posted @ 2011-11-22 20:05 Areas 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 先看看SPGridView能实现的效果:1)分组,分页2)下拉菜单3)过滤以上效果是不是跟系统的列表一模一样?SPGridView继承于GrieView,拥有GridView的所有功能,并扩展了以上功能。下面讲述SPGridView的两种用法:采用自定义数据源和采用WSS的列表作为数据源。利用SPGridView显示自定义数据源Step1:新建一个页面,写入如下内容:<%@PageMasterPageFile="~/_layouts/application.master"Language="C#"AutoEventWireup="true 阅读全文
posted @ 2011-11-22 20:02 Areas 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Technorati Tags:MOSS,WSS 3.0,SPGridView,ItemTemplate,TemplateFieldThings I cover on this Post:Custom TemplateField/ItemTemplateCustom Paging icons - no code required! (well almost)Many people out there (PowloandJason Wangare great examples) have shown you how to use the SPGridView and do cool things 阅读全文
posted @ 2011-11-22 19:16 Areas 阅读(760) 评论(0) 推荐(0) 编辑
摘要: 这段时间手头要做一个KM系统,在发表新知识文章时需要选择一个或多个维度下的知识分类。其实实现方法有很多,例如说再做一个专门用于设置知识分类的页面,让了发表完知识时或者在了表知识前让用户选择;又或者扩展ITEM的Action,弹出一个对话框来选择。但个人觉得这三种实现都似乎是强加上去,就算实现了,也会不太自然,像是个附加品。为了让知识分类的选择能完全融入MOSS列表中,做一个自定义字段类型来显示一个棵知识分类树供用户选择最恰当不过了,碰巧上周刚好学了自定义字段类型,嗯,看来正好能派上用场。于是我马上动工“写”(从网上的例子中拷)了几行代码,先把框架和文件建好:字段定义:1<?xmlvers 阅读全文
posted @ 2011-11-21 17:05 Areas 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 概述jQuery 是继 prototype 之后又一个优秀的 Javascript 框架。其宗旨是—写更少的代码,做更多的事情。它是轻量级的 js 库(压缩后只有21k) ,这是其它的 js 库所不及的,它兼容 CSS3,还兼容各种浏览器(IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+)。 jQuery 是一个快速的,简洁的 javaScript 库,使用户能更方便地处理 HTML documents、events、实现动画效果,并且方便地为网站提供 AJAX 交互。 jQuery 还有一个比较大的优势是,它的文档说明很全,而且各种应用也说得很详细,同时还有 阅读全文
posted @ 2011-11-17 15:46 Areas 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Avoid incorrect Silverlight XAP file cachingwith 36 commentsThe code below appends the last-write filedate of the Silverlight Application XAP file to the path in the source parametre of the Silverlight object tag.This will ensure that poorly constructed caching functionality of webbrowsers and proxy 阅读全文
posted @ 2011-11-17 15:10 Areas 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Group Policy SettingsBelow are descriptions of Silverlight configuration options which can be implemented via administrative templates and enforced in group policy. Learn about the configurable options:Digital Rights Management— enable or disable playback of DRM enabled contentSilverlight Automatic 阅读全文
posted @ 2011-11-17 08:56 Areas 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 知识点总结目录获得List初始上传,还没有Check In过的File删除SPListCollection转DatatableFolder类型添加自定义属性多行文本取出换行识别为垃圾邮件使用MOSS自带的方法发送email.net方式发送email更新审批状态string转GuidContent Type显示个人信息长时间操作,不超时转向内容类型AD操作List附件的读取模拟用户代码People Editor控件工作流历史记录表AJAX实现当Person or Group字段允许多人时,通过sdk对象读取用户信息代码启动工作流CAML查找Lookup型WEB页面显示word多文件上传工作流中. 阅读全文
posted @ 2011-11-10 12:16 Areas 阅读(519) 评论(0) 推荐(0) 编辑
摘要: The following is a list of SharePoint URLs to get to commonly used administrative functions on a MOSS or WSS v3 site. Not all links listed on this page are accessible to all user levels of a site. This is a quick list for speedy reference as compared to tracking down links through the admin screens 阅读全文
posted @ 2011-11-07 14:18 Areas 阅读(288) 评论(0) 推荐(0) 编辑
摘要: It's not a headache until you can do without it, but to use the sharepoint's attachment controls can be a pain in you know what. Try the solution below and save your self from same.~Adding attachment Functionality in a Web Part.//Attachment Controls//Add the Attachment Controls in the webpar 阅读全文
posted @ 2011-11-07 13:59 Areas 阅读(470) 评论(0) 推荐(0) 编辑
摘要: using System;using System.IO;using System.Net;using System.Collections.Specialized;namespace SharePointVisitUtilities{ public static class SharePointFileHelper { // 上传文件 // // 参数 // 上传的文件在SharePoint上的位置,要上传的本地文件的路径名,用户名,密码,域 public static string UploadFile(string strDestUrl, string strFilePathName,. 阅读全文
posted @ 2011-11-07 12:42 Areas 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Creating a SharePoint list is hella easy. Point and click - and bingo - you have a form to type in and maintain your data in a structure you specified, and you can then create various views on the data collected.But what if you wished to customize either the "New" form, or the "Update 阅读全文
posted @ 2011-11-03 20:05 Areas 阅读(350) 评论(0) 推荐(0) 编辑
摘要: Have you ever wanted to change the fields presented in a form when you create a new announcement or task for your SharePoint team site? Do you wish you could remove a field or two in order to keep someone from changing important metadata once a document has been uploaded into your library? Perhaps y 阅读全文
posted @ 2011-11-03 20:04 Areas 阅读(259) 评论(0) 推荐(0) 编辑
摘要: You may come across the need when working with lists and list items in SharePoint, to allow a default value for a field to be passed via a URL parameter.Before we get started, please note that you will need access to Microsoft Office SharePoint Designer, and full access to your site in order to perf 阅读全文
posted @ 2011-11-03 20:04 Areas 阅读(310) 评论(0) 推荐(0) 编辑
摘要: JQuery操作SharePoint Web Services之删除和更新列表数据这篇文章继续上次的http://www.cnblogs.com/fanwenxuan/archive/2009/12/26/1632998.html操作环境。介绍一下更新和删除列表:更新列表效果图如下:删除的代码如下:varbatch="<BatchOnError='Continue'>\<MethodID='1'Cmd='Delete'>\<FieldName='ID'>"+itemid+&q 阅读全文
posted @ 2011-11-01 18:50 Areas 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 最近整理了使用JQuery来操作SharePoint的Web Services的一些操作,这一篇文章介绍的是:查询列表数据。首先介绍一下基本的要求:1.有一个SharePoint的列表。(废话)2.有jquery-1.3.2.min.js。位置放在SharePoint站点的根目录的js文件夹里面。(如果没有就新建一个)3.这个列表有默认的“Title”和自定义的“city“。前者代表区号,后者代表城市名称。(啰嗦)效果图如下:输入titlede 值就可以得到对应的City值。在页面上面添加一个内容编辑器,代码如下:Title:<inputtype="text"id=& 阅读全文
posted @ 2011-11-01 18:49 Areas 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 上一篇中我介绍了JQuery操作SharePoint Web Services之查询列表数据,这一篇我介绍一下添加列表数据 。一些基本的要求和上一篇一样,效果图如下:输入 Title和City的值,列表项的数据就会更新。(不过需要你刷新一下页面,原理嘛,大家都知道)代码如下:Title:<inputtype="text"id="txtNewTitle"/><br/>City:<inputtype="text"id="txtNewCity"/><br/><inpu 阅读全文
posted @ 2011-11-01 18:49 Areas 阅读(159) 评论(0) 推荐(0) 编辑
摘要: What is jQuery?jQueryis a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development (wikipedia article). It was created byJohn Resigand dual licensed under the MIT License and the GNU General Public Licens 阅读全文
posted @ 2011-11-01 18:30 Areas 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 协作应用程序标记语言 (CAML) 是一种基于 XML 的语言,用于在 Windows SharePoint Services 中定义在网站和列表中使用的字段和视图。CAML 还用于在网站设置过程中定义 Windows SharePoint Services 数据库中的表。也可以对列表进行更新,在使用SharePoint Web Service的时候十分重要。详细的规范请参考http://msdn.microsoft.com/zh-cn/library/ms462365.aspx,本文列出一些常用的和重要的信息。1.一些属性RowLimit:<RowLimit>10</Row 阅读全文
posted @ 2011-10-27 13:28 Areas 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 下面列出了sharepoint的母版页中定义的所有占位符:(详细位置请对照default.master)1、<asp:ContentPlaceHolderID="PlaceHolderGlobalNavigationSiteMap"runat="server"/>放置连接到顶级站点的超连接2、<asp:ContentPlaceHolderID="PlaceHolderGlobalNavigation"runat="server"/>放置顶部一行内容。3、<asp:ContentPlac 阅读全文
posted @ 2011-10-27 13:10 Areas 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 编辑器加载中...这篇很短的文章展示了ASP.NET2.0中的母板页和内容页在Windows SharePoint Services v3.0中的应用。WSS 3.0 是在ASP.NET 2.0 的基础上实现的,这篇很短的文章展示了ASP.NET2.0中的母板页和内容页在Windows SharePoint Services v3.0中的应用。WSS 3.0 是在ASP.NET 2.0 的基础上实现的,所以WSS 3.0中母板页/内容页也是基于ASP.NET 2.0中的相应功能而实现站点定制的。网上已经有很多介绍ASP.NET2.0中母版页的文章了。下面提供的链接来源与MSDN,个人认为是一篇 阅读全文
posted @ 2011-10-26 16:24 Areas 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 本文和大家一起来探讨下Silverlight开发网页游戏设计中支持动态多国语言支持(本地化)的做法。一款Silverlight开发的游戏最终发布时无论是部署于网站上或是手机等移动设备中,为能让其拥有最广泛的用户使用群体,我们必须在开发初期就将游戏的本地化实现提上议程。微软为我们提供的Silverlight原生态本地化解决方案是通过在XAP中嵌入多国语言Resource File来实现,过程比较烦琐且效果差强人意。企业应用中就算多包装几个语言文件进XAP亦无关痛痒;然而一款集成有丰富故事脚本、事件剧情及历史背景(比如《龙与地下城》之类史诗级游戏巨著)的Silverlight游戏,将所有语言文件一 阅读全文
posted @ 2011-10-19 16:50 Areas 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 默认的情况下Moss 2007 禁止 Session开启Session的方式是找到站点根目录 代开Web.Config 修改两个地方1.设置EnableSessionState=“True”<pagesenableSessionState="true"enableViewState="true"enableViewStateMac="true"validateRequest="false"pageParserFilterType="Microsoft.SharePoint.ApplicationRu 阅读全文
posted @ 2011-10-09 14:30 Areas 阅读(215) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页