
.Net
文章平均质量分 57
DJ2008
这个作者很懒,什么都没留下…
展开
-
WCF Service 的创建,测试,发布与使用示例
WCF Service 的创建,测试,发布与使用示例一, WCF Service 的创建: WCF Service Application 注:为了在 IIS 或 WAS 中托管,则必须使用 WCF Service Application 类型,参看右侧的说明。 如准备使用 Windows Service 托管,则可使用 WCF Service Library 类型1,创建 WCF Service Application 2,对应准备相关代码F2 to..原创 2021-11-26 16:42:08 · 1229 阅读 · 0 评论 -
转: 在WSS/MOSS中使用SPQuery分页
在WSS/MOSS中使用SPQuery分页2007-11-19 11:52:19 原文地址: http://blog.sina.com.cn/u/3f2ef11801000bw1 [查看原文] Steve Peschka在技术白皮书《White Paper: Working with large lists in Office SharePoint Server 2007》一文转载 2008-03-26 17:57:00 · 1666 阅读 · 0 评论 -
转: Debug SharePoint WebParts - VS 2005
Debug SharePoint WebParts - VS 2005With VS 2003 and SPS 2003/WSS2.0, it was totally different. There was just one w3wp process you need to attach the debugger to. How to debug in VS 2005?转载 2008-05-09 17:20:00 · 812 阅读 · 0 评论 -
转: 如何将dll 程序集安装到GAC中?
如何将程序集安装到GAC中?首先要为程序集赋一个强名(strong name),其实是用于签名的密钥。选择“开始/所有程序/Microsoft Visual Studio .net 2003/Visual Studio .NET 工具/Visual Studio .NET 2003 命令提示”菜单,进入.net 2003命令提示窗口。在命令提示中输入:sn -k c:/you转载 2008-07-19 10:23:00 · 798 阅读 · 0 评论 -
转: 对WinForm的App.config文件进行加密
转于: http://hi.baidu.com/xbzhu/blog/item/855a2f126f034554f819b828.html 对WinForm的App.config文件进行加密2008-07-11 16:48最近在做一个WinForm的项目,由于采用的是在客户端直接连接数据库的方式,需要在客户端部署App.config,由于使用了Enterprise转载 2008-07-18 16:58:00 · 843 阅读 · 0 评论 -
如何正确的打开和关闭相关Object,如 SPSite, SPWeb 等,从而避免内存资源的浪费?
方法一:让系统自动帮你收回 using(SPSite site = new SPSite("http://moss"){ using (SPWeb web = site.OpenWeb()); { // … do stuff with web } // SPWeb object web.Close(), web.Displose() auto原创 2008-10-11 12:27:00 · 1801 阅读 · 0 评论 -
Web Part 开发中遇到的问题及解决方法
前段时间开发过一些Web Part, 算是真正的开发而不是修改和改进,几个同事一起开发,大约用了近一个月的时间,是开发一个由多个Web Part 组成的一个页面,其中一个Web Part 作为选择条件,其它Web Part 则根据第一个Web Part 的选择值来决定显示的内容。其中涉及到的有: 一般简单的Web Part, Web Service,由Web Service 提供资原创 2008-10-11 11:55:00 · 748 阅读 · 0 评论 -
如何让多个Win Application 仅使用一个 app.config 文件?
正常情况下,.Net 中的 Win Application 每个对应的 exe 均有一个对应的 app.config 文件,但对有些系统,如每个小功能均是一个独立的 Exe 文件,这样的系统灵活性很高,但就出现了一个问题,如果上百上 Exe 文件,虽然用同一个联接及相同的其它参数,难道必须对每一个Exe 再对应一个 app.config 文件,即又需再多一倍的的文件吗?我想一样有方原创 2008-10-14 11:30:00 · 833 阅读 · 0 评论 -
VB 6.0 中打开 Connection 的两种方法,或称为设定 ConnectionString 的两种方法
VB 6 不用很久了,Connection / ConnectionString 这个却是很少用到的,有时还真没记下它,现记于此。 Dim Cn As New ADODB.Connection Dim rst As New ADODB.Recordset 第一种方法 Cn.ConnectionString = "Provider=sqloledb;Data S原创 2009-01-06 16:35:00 · 4212 阅读 · 0 评论 -
转:使用WebService动态生成DataSet绑定到Reporting Services
使用WebService动态生成DataSet绑定到Reporting Services转自:http://tech.sina.com.cn/s/2008-07-01/0833714471.shtml 【IT168技术文档】 我的步骤是这样的: 1.首先创建一个WebSerivce,然后写了一个Web Method:<!--Code highlighting pro转载 2008-11-13 10:19:00 · 777 阅读 · 0 评论 -
VB 中用代码打开 Outlook 发Mail
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal原创 2008-12-02 16:18:00 · 2192 阅读 · 0 评论 -
转: 关于Web Part 通讯
引用:http://zmsx.cnblogs.com/archive/2005/12/21/301994.html 关于Web Part 通讯 Web Part 是asp.net 2.0中提供的新特性,通过它可以让最终用户自由修改页面布局,效果可以看看Google的自定义页面http://www.google.com/ig?hl=zh-CN,其使用也非常简单,下面就说一下两个Web转载 2009-02-19 15:29:00 · 650 阅读 · 0 评论 -
Web Part 进行 Debug 前,你有运行 iisreset 吗?
今天在改进几个 Web Part 时,发现一个问题,Debug 用了近4个小时,最终解决却仅需几分钟,关键就是先运行 iisreset ! 改进项目是一个页面上有多个 Web Part,且Web Part 间需传递参数,目前使用的是一个 Interface 来实现传递,会编译为 dll 放在 GAC 中使用。今天的改进就是因这个 Interface ,在其中新增加原创 2009-02-18 19:03:00 · 636 阅读 · 0 评论 -
WebPart 和 Web Form之间如何传递参数?
因需要在Web Part 上调用一个 Web Form 来显示数据,但需要一些参数,且参数非常长,放在地址栏中可能会有问题,那如何才能方便的进行传递呢? 目前来看,1,其实地址栏传参数应该足够长,最长是多少呢? 终于找到确认答案: 2083 个字符, Maximum URL length is 2,083 characters in Internet Expl原创 2009-02-19 15:32:00 · 970 阅读 · 0 评论 -
Sharepoint 中读取得不同类型SPField 时的处理方式之一
private string GetDataFromLookUpOrUser(string tempString) { string temp = ""; string temp2 = ""; string temp3 = ""; string temp4 = "";原创 2009-04-14 17:30:00 · 653 阅读 · 0 评论 -
Sharepoint 中读取得不同类型SPField 时的处理方式之二
/// /// 对目标字串,根据ListItem 和对应的 Field, 更新其中的字段内容 /// /// Content String /// SPListItem Object /// SPField Object private void TranslateContentField(r原创 2009-04-14 17:35:00 · 942 阅读 · 0 评论 -
使用VS 2005 在SQL Server 2005 中创建自定义函数 UDF 时发生的问题
问题一: 对自定义的 Function 和 Store Procedure ,因必须使用限定词: static 静态类型,故其中的Porject 级别的方法和属性及变量,必须为 Static 类型。方法内部定义的变更则不受限定。否则会出错。 问题二:如需要在Function 中读取SQL Server 中的内容,需要在其属性标识中加入DataAccess 属性。[Microso原创 2009-04-21 10:20:00 · 1146 阅读 · 0 评论 -
how to call Web service in Excel 2003 / Excel 2005
http://msdn.microsoft.com/en-us/library/aa168471(office.11).aspx Microsoft Visual Studio Tools for Office Technical ArticlesAccessing Web Services in Excel Using Visual Studio Tools for the Micr转载 2009-04-07 17:58:00 · 1398 阅读 · 0 评论 -
Web Part 的错误之一: this.ExportMode = WebPartExportMode.All;
系统提示 ExportMode 找不到。 几次发现此问题,均要重处理才能通过Build 。 其实原因一般都差不多,至少我处理的均是由于 Microsoft.SharePoint.dll 引用失效或版本不一致的问题。重新引用即可解决!原创 2009-07-21 17:48:00 · 637 阅读 · 0 评论 -
转: Calling a SAP Web Service from VS.Net
From: http://help.sap.com/saphelp_47x200/helpdata/en/2d/64d01de74911d6b2e400508b6b8a93/content.htm Some software development tools support the call of a Web Service conveniently by “consuming” the转载 2009-07-22 18:35:00 · 2494 阅读 · 0 评论 -
转: .Net,ASP,VB调用webservice的示例
http://www.blogjava.net/nobody_am/articles/7577.html1.service文件代码:Imports System.Web.ServicesSystem.Web.Services.WebService(Namespace :Namespace := "http://tempuri.org/VSService/Service1")> _P转载 2009-07-22 18:42:00 · 1465 阅读 · 0 评论 -
InfoPath 的 Repeat Table 重复表中的数据,如何用C# 读取?
引自: Q-我在InfoPath2007里有一个重复表group2,分三列field1,field2,field3.请问我如何用c#获取到重复表中每行field1,field2,field3的值? A-XPathNodeIterator nodes = MainDataSource.CreateNavigator().Select("/my:myFields/my:g原创 2009-07-29 10:52:00 · 1834 阅读 · 0 评论 -
转:MOSS 2007 Filter webparts ,建立筛选Document Library 的Web Part
转: http://www.sharepointblogs.com/tonstegeman/archive/2007/09/21/moss-2007-filter-webparts-part-1-create-your-own-provider-and-consumer.aspx 参考:Connect a Filter Web Part to a Data View Web Part转载 2009-07-28 18:15:00 · 1277 阅读 · 0 评论 -
转:How to submit rows of a repeating table in InfoPath to a web service? 如何将重复表中的记录传给Web Service ?
关键点及注意事项: 1, 注意其中红色字体部分,namespace 必须和对应的 InfoPath Form 中一致,其中一个办法就是在 InfoPath Form 设计阶段查看Group 对应的属性,可直接取得其 namespace; 2, 在 RepeatingTable class 定义中,必须确保其中两个Group 的名称和 InfoPath Form 中对应的Group转载 2009-07-31 19:33:00 · 1958 阅读 · 0 评论 -
转:How to submit the rows of a repeating table in InfoPath to a SharePoint list
转: http://www.bizsupportonline.net/infopath2007/how-to-submit-items-rows-repeating-table-infopath-sharepoint-list.htmProgrammatically add items from a repeating table in InfoPath to a SharePoint l转载 2009-07-31 19:39:00 · 2049 阅读 · 0 评论 -
转:WinForm使用WebService自动升级 (VB + .Net)
转自:http://hi.baidu.com/sunward08/blog/item/cb64ac224657014dac34de2d.html WinForm使用WebService自动升级2009-08-08 10:49winform程序相对web程序而言,功能更强大,编程更方便,但软件更新却相当麻烦,要到客户端一台一台地升级,面对这个实际问题,在最近转载 2009-11-19 10:11:00 · 817 阅读 · 0 评论 -
转:测试Remoting三种信道Http,Tcp,Ipc和Web Service的访问速度
转自:http://www.cnblogs.com/zhang3533/archive/2007/06/26/795705.html 测试Remoting三种信道Http,Tcp,Ipc和Web Service的访问速度 Remoting和Web Service是.net中的重要技术,都可用来实现分布式系统开发,如果是不同的平台就只能选择Web Service,但如果是同一平台,转载 2009-11-19 11:25:00 · 867 阅读 · 0 评论 -
SSIS 中调用SAP RFC 功能时碰到的问题及解决方法
1,如果RFC 中参数太多,而且仅有几个是必须输入参数,则很难成功调用。 例,目前使用了一个20个参数的RFC ,但试了几种情况均未能成功调用。=》解决方法:将需要使用了参数抽出,单独再加一个新的RFC 功能,用新功能再调用旧的RFC ,这样就在RFC 内部处理空参数的默认值问题,如此,则可功能调用。 2,在SSIS 的验证过程中出现类似"The value was to原创 2010-01-26 08:43:00 · 2463 阅读 · 0 评论 -
转:Web Service 方法重载(Overloads),原来 Web Service 是支持重载方法的!
转自:http://zhhot.spaces.live.com/Blog/cns!6556C5D5C7889AD7!313.entryWeb Service 方法重载(Overloads) 在Web service 中重载方法,默认是不支持的,这是因为WebMethod特性的MessageName属性使XML Web services能够唯一确定使用别名的重载方法。除非另外指定原创 2009-12-03 19:13:00 · 1429 阅读 · 0 评论 -
转: VB.Net 中实现延迟的几种方法分析
转: http://topic.youkuaiyun.com/t/20020730/03/909318.html 1. Threading.Thread.Sleep(...) 优点: 简单 缺点: Sleep期间程序(其实是该线程)没有任何响应。 2. Timer(定时器) 定时器有3种。Forms.Timer/ Timers.T转载 2009-12-10 10:34:00 · 17563 阅读 · 0 评论 -
转:.net 线程调用方法(无参和有参)
.net 线程调用方法(无参和有参)2009-01-11 19:591,调用没有参数的方法public class jh{ public static void Process() { //...... }}Thread thread = new Thread(new ThreadStart(jh.Process));thread转载 2009-12-10 10:54:00 · 986 阅读 · 0 评论 -
如何在.Net 中使用资源文件?
下面的例子即为其中一种使用方法,主针对直接在Class / Project 中附加其它文件的一种处理方式。 1,如果希望用户看不到对应的资源文件,则需要先选择加入的文件后,在其属性中,对属性 Build Action 的值选择为“Embedded Resource”,然后即可用以下例子中的方式读取。关键代码1:Dim _asm As Assembly = Assembly.GetExe原创 2010-02-10 17:45:00 · 610 阅读 · 0 评论 -
转:关于 SPList 的 Update
转自:http://www.cnblogs.com/MinSentinel/archive/2008/06/07/1209992.html 通过SPList.Update()可以更新一个List,但一般你是不能直接调用此方法的,会出现“Updates are currently disallowed on GET requests. To allow updates on a GET, s转载 2010-02-10 17:40:00 · 999 阅读 · 0 评论 -
转:遇到“Configuration System Failed to Initialize”错误怎么办?
我自己呢,却是因为第一种情况导致,唉,搞了我一两个小时没有解决。 原址:http://kb.cnblogs.com/a/1620639/ 引起这个错误的原因一般有两种情况:一个是,在config文件中,configSections没有放在最上面,见如下blog的解释:http://blogs.msdn.com/jongallant/archive/2008/03/02/conf转载 2010-02-08 19:08:00 · 7109 阅读 · 1 评论 -
如何用.Net 取得指定网面的内容? How to get html web page data?
using System;using System.IO;using System.Net;using System.Text;namespace Examples.System.Net{ public class WebRequestGetExample { public static void Main() { // Cre原创 2009-12-31 17:19:00 · 636 阅读 · 0 评论 -
转:Working with HttpWebRequest and HttpWebResponse in ASP.NET
转自:http://www.worldofasp.net/tut/WebRequest/Working_with_HttpWebRequest_and_HttpWebResponse_in_ASPNET_114.aspx IntroductionI will explain about the usage of HttpWebRequest and HttpWebResponse转载 2009-12-31 17:46:00 · 793 阅读 · 0 评论 -
如何产生SPQuery 对应的Query 字串?
/// /// 根据相关条件,产生对应的 SPQuery, 以备之后查出对应的记录 /// 1, 根据之前的条件数组,产生 Where 语句; /// 2, 根据属性中的设定,产生 OrderBy 语句。 /// /// private string GetSPQuery()原创 2010-03-23 16:52:00 · 705 阅读 · 0 评论 -
转:Reporting Service Report - Using URL Access Parameters
转: http://msdn.microsoft.com/en-us/library/ms152835.aspxUsing URL Access ParametersYou can use the following parameters as part of a URL to configure the look of your reports. The most com转载 2010-03-24 13:07:00 · 1018 阅读 · 0 评论 -
转: 如何向WebForm下的ReportViewer传递身份凭证
转自:http://space.itpub.net/9079672/viewspace-416169 WebForm下的ReportViewer控件不能直接传入身份凭证,因为其ServerReport.ReportServerCredentials.NetworkCredentials属性是只读的。在骚扰了N个.NET MVP后,终于知道有一个接口叫IReportServerCrede转载 2010-03-25 18:42:00 · 2081 阅读 · 1 评论 -
如何在VB 中直接打开并选择目录,而不使用麻烦的多个控件?
之前使用过一种方法,很简单,在VB6 或 VBA 中均可使用,代码如下: * 但有一个前提条件,因使用到 Shell32.DLL ,故必须先引用 "Microsoft Shell Controls And Automation" 才可以正常使用。 Dim objShell As New Shell32.Shell Dim oFd As Shell32.Fo原创 2010-03-26 16:45:00 · 2053 阅读 · 0 评论