自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

IT Tech

点滴积累

  • 博客(21)
  • 资源 (13)
  • 收藏
  • 关注

原创 关于SPList的Update及AllowUnsafeUpdates

通过SPList.Update()可以更新一个List,但一般你是不能直接调用此方法的,会出现“Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.”解决方法有两个:1。设置 AllowUnsaf

2011-11-30 15:19:46 697

原创 word中自动生成递增数字

可以实现,使用Word中的 seq 域即可。光标定位在文档中,按 Ctrl + F9 插入 { },然后在其中输入 seq n \# 0000 ,按F9更新即得到 0001,然后剪切这个 0001,依次粘贴到 每个需要出现自动序号的位置,最后按全选文档并按F9更新即可。其实一个个粘贴也还是比较麻烦,所以可以使用替换来批量一次性粘贴到所有需要自动序号的位置;不过具体需要看看你的序号前后分别是什么内容

2011-11-25 15:42:06 21893 3

转载 Hashtable的遍历(DictionaryEntry)

定义可设置或检索的字典键/值对。命名空间:System.Collections程序集:mscorlib(在 mscorlib.dll 中)foreach 语句是对枚举数的包装,它只允许从集合中读取,不允许写入集合。C# 语言中的 foreach 语句(在 Visual C++ 中为 for each,在 Visual Basic 中为 For Each)需要集合中每个元

2011-11-23 14:42:02 1219

转载 c#实现Form窗体始终在桌面最前端显示

方法一://调用API[System.Runtime.InteropServices.DllImport("user32", CharSet = System.Runtime.InteropServices.CharSet.Auto, ExactSpelling = true)]public static extern IntPtr GetFocus(); //获得本窗体的句柄

2011-11-23 11:30:18 5189

原创 .Net 登录窗口

登录窗口,需要实现登录后关闭登录窗口,显示主窗体1. 在 Program.cs 中修改 /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { Application.EnableVisualStyles();

2011-11-23 10:17:44 1534

转载 Sharepoint ListTemplateId

If you want to add a Event Handler Assembly to a specific list in Sharepoint with a Feature you have to pass a ListTemplateId.EventHandler DeleteItemDeleting…Here's a little code

2011-11-21 11:26:43 612

转载 Create a New SharePoint Permission Level and Bind it to an Existing SharePoint Group

Create a New SharePoint Permission Level and Bind it to an Existing SharePoint Group 这个例子是新建一个  permission level,名字为Example_xxxxxxxxxxx.建好之后.绑定这个permission level 到一个已经存在的组名字为Foo.using (SPSite site

2011-11-17 11:39:28 762

原创 如何快速找到网站集所在w3wp进程

调试Feature时,可以通过 附加到进程 来做,timer是 附加到 owstimer.exe ,其他的一般都是附加到 w3wp.exe. 但进程中往往会有多个w3wp.exe 进程. 很多人对于MOSS开发有个很烦的地方就是在调试WebPart或者EventHandler之类的MOSS自定义组件时找不到部署的网站集所对应的w3wp.exe进程。在Windows文件夹中的system

2011-11-17 08:53:57 652

转载 SharePoint: In a CAML query, filter by lookup item ID, not by its value

Your filter for the CAML query probably looks like this currently:   Dunder Mifflin  But the "Customer" field is a lookup column to a d

2011-11-15 15:09:47 1057

转载 .Net 操作文本文件

读取和写入文本文件Read a Text File 的这篇文章部分描述如何使用 StreamReader 类来读取文本的文件。Write a Text File (Example 1),和 Write a Text File (Example 2) 在各节说明了如何使用 StreamWriter 类来向文件写入文本。读取文本文件若要打开、 读取,和来关闭文本文件,下面的代码使用

2011-11-10 16:35:34 695

转载 Clear the SharePoint Configuration Cache

If you experience issues with WSS and MOSS timer jobs failing to complete are receiving errors trying to run psconfig, clearing the configuration cache on the farm is a possible method for resolving t

2011-11-10 16:15:58 537

转载 在程序中设置infopath中的整型等域值时出错解决方法 :"Schema validation found non-data type errors."

最近一直和infopath表单打交道,碰到的问题也比较多,刚刚就碰到一个在程序中修改infopath表单中域的内容时出错的问题,写出来与大家共享一下,我想这个问题,可能玩infopath的话,迟早会碰上的吧。具体表现就是在代码中对一些值类型的域进行更改的时候,代码报错,出错信息:"Schema validation found non-data type errors."小弟对xml sc

2011-11-10 08:36:55 836

原创 正则表达式

?:告诉引擎匹配前导字符0次或一次。事实上是表示前导字符是可选的。 +:告诉引擎匹配前导字符1次或多次 *:告诉引擎匹配前导字符0次或多次“.”匹配一个单个的字符而不用关心被匹配的字符是什么。唯一的例外是新行符“^”匹配一行字符串第一个字符前的位置$匹配字符串中最后一个字符的后面的位置元字符\b,单词边界 “ ¦”表示选择圆括号“()”用于形成组。“[]”用于定义字

2011-11-09 12:20:44 561

原创 run report through call reporting services web service

SQLRS2005.ReportExecutionService rs = new SQLRS2005.ReportExecutionService();rs.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;rs.UseDefaultCredentials = true; byte[] r

2011-11-08 10:57:43 450

转载 Infopath 开发并部署至MOSS 示例

Infopath是Office中提供的一个部件,可以方便快捷的处理一些表单。比较常见的使用就是会计可以利用Infopath制作一个表单模板,需要报销的人直接填写就可以了,填写好的表单可以xml的格式保存为本地的一个表单文件。同时也可以将Infopath表单模板在web页面上来呈现和填写。在MOSS中提供了InfoPath Forms Services功能可以方便的发布Infopath表单,当然

2011-11-08 10:52:46 542

转载 Domain Certificate Authority Signing InfoPath 2007 Forms

如果Infopath form 有后台代码且安全级别为 完全信任,那在Sharepoint 中用客户端打开会报错,除非对该模板做了签名,下面是针对局域网用户,建立一个自己的CA 服务器,并做签名。InfoPath forms with custom code and those that have their Security Level set to Full Trust must be

2011-11-08 10:28:52 430

原创 SharePoint向InfoPath 2007表单传递参数

在调用模板的地方,在链接上增加相应参数。 添加自定义代码到表单模板的Loading事件,通过InputParameters属性返回Idictionary,并利用其TryGetValue方法获取参数值。当确实得到参数值后,我们可以使用XpathNavigator对象的SetValue方法更新表单数据源中的某个结点值 public void FormEvents_Loading(objec

2011-11-08 10:24:12 550

转载 CAML 多表查询 SPQuery.Joins and ProjectedFields

在2007 不支持,2010支持.  Demo:字典表:CityState表:  标题(Text)   State(Text)  AreaCode(num)Locations表:  标题(Text)   City (Text)  zipCode (num)Customer表:  CustomerName(Text) Address(Text) City(Lookup) St

2011-11-08 09:56:04 1243

原创 读取InfoPath中的附件并附加至SharePoint列表

在Workflow 中,签核完成后,在列表中生成一笔记录,并且将表单的附件附加到该记录中。1. 新建 coder 类. http://support.microsoft.com/kb/892730using System;using System.IO;using System.Text;using System.Security.Cryptography;namesp

2011-11-07 11:23:22 766

转载 人民币大写转化函数(C#版)

public string CmycurD(string numstr) { decimal num = Convert.ToDecimal(numstr); string str1 = "零壹贰叁肆伍陆柒捌玖"; //0-9所对应的汉字 string str2 = "万仟

2011-11-03 15:59:22 590

原创 CAML语法-Query写法

CAML语法-Query写法1.Geq(>=)  The Geq element is an arithmetic operator that means "greater than or equal to." It can be used within a Where element in a view definition.

2011-11-02 14:41:36 939

System.Data.Sqlite.dll 1.0.112

从nuget里只能下到1.0.113版本,但这个版本开始不支持连接字符串里带password了,1.0.112还是支持带password连接字符串的,里面包含各个framework版本的文件

2020-06-05

Newtonsoft.Json-3.5.6

Newtonsoft.Json-3.5.6,可用于wince的序列化和反序列化,含源码,如在wince中报错,可修改源码解决

2018-11-12

Microsoft Frontpage Server Extension 2002

Microsoft Frontpage Server Extension 2002

2012-06-20

Turbo C 2.0 绿色版

Turbo C 2.0 绿色版, 直接解压即可使用

2012-02-09

Lotus Script语法

Lotus Script语法, 供开发使用

2012-01-18

Lotus_Domino_程序设计

Lotus Domino 6.5 程序设计

2012-01-18

Lotus Notes 教程

Lotus Notes 中文教程,共24章

2012-01-18

log4net-1.2.10

log4net-1.2.10, 最新的 log4net 源码及dll 文件。

2011-12-19

文件搜索工具

除了一般的文件查找功能外,还可以查找文件里含有的字符.

2011-12-19

WSPBuilderExtensions

WSPBuilder Extensions for c#.net 2008

2011-12-19

SharePoint Manager2007

http://spm.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=22762

2011-10-20

Tutorial: Create a State Machine Workflow

http://msdn.microsoft.com/en-us/library/ms734766(v=VS.90).aspx MSDN的例子,不过照着步骤一步步做来没能成功,少了各 Activity的 MethodInvoking , newstatus, orderid 的设置,存一下修改后成功的例子。

2011-09-06

EventHandlePub.rar

EventHandlePub.rar

2011-08-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除