自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(149)
  • 资源 (5)
  • 收藏
  • 关注

转载 When To Use IEnumerable, ICollection, IList And List

I think that the question when to use IEnumerable, ICollection, IList or List is a common one that hasn’t often being answered in an easy way. I not only want to do this within this article, but I als...

2018-06-01 15:32:02 316

原创 更新页脚合计值

场景描述:采用表头表体方式建立单据录入界面,表体金额字段在页脚显示合计,并自动更新至表头的金额字段。存在问题:1、虽然在CellValueChanged事件里有调用GridView.UpdateSummary()方法但是并未能产生预期的效果,只有在光标发生移动后才会更新合计值。2、最后一行删除时,不能反馈到表头金额合计。解决方法:1、在Grid_CellVa

2017-02-02 23:19:58 804

转载 Using x-www-form-urlencoded Content-Type in WCF

So we have a wcf restful web service configured with webHttpBinding and everything works fine with http get.  If change it to Post and post something like variable1=1&variable2=2 in message body d

2016-09-01 11:19:13 1963

转载 How to define One-Many and One-One relationships

LINQ helps you define relationships using EntitySet and EntityRef. To understand how we can define relationships using LINQ, let’s consider the below example where we have a customer who can have ma

2016-05-19 18:33:15 545

转载 C# DateTime的 ParseExact和 TryParseExact 使用说明

最近需要把“20121010”转换为“2012-10-10”格式,直接用Convert.ToDateTime("20121010"),系统报错“未被识别的DateTime类型”。解决方法: 一、DateTime.ParseExact string str = "20121010";  IFormatProvider ifp = new CultureInfo("

2016-05-08 14:46:55 6794

转载 C# Dictionary 的几种遍历方法

Dictionary list = new Dictionary(); list.Add("d", 1); //3.0以上版本 foreach (var item in list) { Console.WriteLine(item.Key + ite

2016-04-11 21:34:41 755

原创 How to fix “Outlook data file cannot be accessed” error (Solved)

In a customer’s computer, the following error appeared during “Send/Receive Progress” in Outlook 2013 “Sending reported error (0x8004010F) : ‘Outlook data file cannot be accessed.’” The above erro

2016-02-16 20:46:37 2683 1

转载 SQLServer 2012 已成功与服务器建立连接,但是在登录前的握手期间发生错误。 (provider: SSL Provider, error: 0 – 等待的操作过时

用管理员身份运行CMD,输入netsh winsock reset并回车

2016-01-25 17:04:03 11359

转载 How to provide the capability to expand empty rows of a master view to be able to add child rows

To be able to expand empty rows, just enable the master view's OptionsDetail.AllowExpandEmptyDetails option. In this case, empty master rows will display a grayed out expand button, which can be

2016-01-19 10:04:42 612

原创 Microsoft SQL Server Data Tools 2012 - Installation Error

After reading all chain of links.. I understood the root certificate updates should happen automatically for Windows 7. I tried restarting and several other things and the certificate update does

2016-01-05 10:59:27 1390

原创 PictureEdit - How to display external images by providing links for them

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;

2015-12-25 16:07:00 657

原创 Insert Image into Record from Clipboard

private void simpleButton2_Click(object sender, EventArgs e) { gridView1.AddNewRow(); Image img = Clipboard.GetImage(); MemoryStream stream = new MemoryStream();

2015-12-25 15:41:59 466

转载 让IIS8支持WCF的最简单方法

以前在IIS8中使用WCF时,总是参考在IIS8添加WCF服务支持这篇博文进行手工设置:1. 首先添加MIME类型:扩展名“.svc”,MIME类型 “application/octet-stream”:2. 然后在“Handler Mappings”中添加Managed Handler:Request path: *.svcType: System.ServiceMo

2015-12-23 13:11:46 1256

转载 Publishing a WCF service on IIS 8

WCF services don’t run on IIS 8 with the default configuration, because the webserver doesn’t know, how to handle incoming requests targeting .svc files. You can teach it in two steps:1. Add a n

2015-12-23 13:10:08 520

转载 windows server 2012启动进入cmd解决方法

Dism /online /enable-feature /all /featurename:Server-Gui-Mgmt /featurename:Server-Gui-Shell /featurename:ServerCore-FullServer

2015-12-23 11:50:10 20421

转载 C#下载文件(TransmitFile/WriteFile/流方式)实例介绍

using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.W

2015-12-15 12:23:34 1646

原创 Telerik Grid 设置合计

ASPX:C#:protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e){ int total = 0; if (e.Item is GridDataItem) { GridDataItem dataItem = (GridData

2015-12-06 23:55:27 1736

原创 清理SQLServer链接历史记录

删除C:\Users\【User Name】\AppData\Roaming\Microsoft\SQL Server Management Studio\12.0下的SqlStudio.bin文件即可

2015-12-06 12:17:54 750

原创 Windows 7: Could not find this item - when deleting files

1) Open a Command Prompt.2) Browse to the folder containing the buggy file.3) Type 'dir /x' to obtain the 8.3 formatted filename.4) Delete the file using the 8.3 filename, e.g. 'del NEWDOC~1

2015-12-04 12:46:33 876

原创 Error in Microsoft Visual Studio 2012 :No exports were found that match the constraint

I solved this problem by clearing the Visual Studio Component Model Cache. Just delete or rename this folder:%AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCacheOr, for

2015-11-24 12:38:06 684

翻译 How to merge grid cells

The sample illustrates the way to merge grid cells based on a custom-defined rule. To enable cell merging, it's necessary to set theGridView.OptionsView.AllowCellMerge property to true. If you

2015-11-19 15:15:44 1019

原创 DevExpress SQLDataSource

SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(UFContextManager.UFAccDataConnectionString);            MsSqlConnectionParameters connParameters = new MsSqlCon

2015-08-11 15:21:16 2102

转载 WCF大数据量传输配置

WCF大数据量传输配置WCF传输数据量的能力受到许多因素的制约,如果程序中出现因需要传输的数据量较大而导致调用WCF服务失败的问题,应注意以下配置:1、MaxReceivedMessageSize:获取或设置配置了此绑定的通道上可以接收的消息的最大大小。basicHttpBinding等预定义的绑定一般具有MaxReceivedMessageSize属性,C

2015-04-09 20:55:28 638

转载 C#怎样获取当前月份的天数

方法一: //最有技术含量的一种    int days =    System.Threading.Thread.CurrentThread.CurrentUICulture.Calendar.GetDaysInMonth(DateTime.Now.Year ,DateTime.Now.Month);方法二://最奇怪的一种    DateTime d

2015-03-30 17:18:33 2367

转载 webHttpBinding、basicHttpBinding和wsHttpBinding区别

webHttpBinding is the REST-style binding, where you basically just hit a URL and get back a truckload of XML or JSON from the web servicebasicHttpBinding and wsHttpBinding are two SOAP-based bindi

2014-10-02 11:29:48 1321

转载 WCF客户端代理文件创建和使用中的问题

我们创建了WCF服务以后,可以通过客户端代理文件在客户端方便的使用WCF服务中定义的方法。要创建客户端代理文件可以通过两种方式:一、.net中提供的Svcutil.exe工具来进行。这个工具在Program Files\Microsoft SDKs\Windows\v6.0\Bin中,当然了,这个目录要在安装了.net 3.0开发包之后才会有。生成客户端代理文件之前要先把WCF服务启动起来

2014-09-09 10:42:50 653

转载 WCF在 IIS上面 部署的步骤

xml version="1.0"?>configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">system.serviceModel>services>service behaviorConfiguration="MyServiceTypeBehaviors" name="

2014-09-09 10:41:23 497

转载 WCF中Service Configuration Editor的使用方法

1、在App.config文件上右击,选择Edit WCF Configuration...。或者打开Program Files\Microsoft Visual Studio 8\Common7\IDE\svcconfigeditor.exe后选择File - New Config。2、创建新的服务设置。3、手工输入,或使用 "Browser..." 选择服务所在程序集。

2014-09-09 10:40:21 521

转载 TimeSpan

TimeSpan的用法TimeSpan是用来表示一个时间段的实例,两个时间的差可以构成一个TimeSpan实例,现在就来简单介绍一下几点重要的用法:a 先来介绍几个方法TimeSpan.Minutes(其他时间比如天数,小时数,秒数都一样的情况下得到的分钟数的差),其他的Hours,Second一样DateTime.Tick :是一个计时周期,表示一百纳秒,即一千万

2014-09-04 14:43:53 526

转载 WCF 传送二进制流数据 stream

WCF 支持传送二进制流数据,但有一定的限制。只有 BasicHttpBinding、WebHttpBinding、NetTcpBinding 和 NetNamedPipeBinding 支持传送流数据。流数据类型必须是可序列化的 Stream 或 MemoryStream。 传递时消息体(Message Body)中不能包含其他数据。 我们先看看下面的例子。注意将 B

2014-09-03 20:47:44 2092

转载 WCF学习心得----(五)生成客户端

WCF学习心得----(五)生成客户端1. 通过Svcutil.exe工具直接生成客户端1.1 将服务承载于IIS上1.1.1 在IIS中新建网站,所示效果如下图:1.1.2 新建WCF应用程序,项目文档结构如下图:1.1.3 选中项目,点击右键在资源管理其中打开文件,结构如下:将上图中红框标记的文件拷贝至跟网站虚拟目录映射的物理路径下,一般都是在C盘,如下路径

2014-09-03 15:28:44 918

转载 WCF学习心得----(四)服务承载

WCF学习心得----(四)服务承载这一章节花费了好长的时间才整理个大概,主要原因是初次接触这个东西,在做练习实践的过程中,遇到了很多的问题,有些问题到目前还没有得以解决。所以在这一章节中,有一个承载是没有例子的。仍在努力解决所在的问题,后续会把例子给补上的。好了,进入正题。要变为活动状态,服务必须承载于创建它并控制它的上下文和生存周期的运行环境中。WCF有以下三种承载方式:在IIS中承载

2014-09-03 15:27:45 758

转载 WCF学习心得------(三)配置服务

配置服务 配置服务概述 在设计和实现服务协定后,便可以进行服务的配置。在其中可以定义和自定义如何向客户段公开服务,包括指定可以找到服务的地址,服务用于发送和接受消息的传输和消息编码,以及服务需要的安全类型。配置服务类型使用配置文件配置1) 使用配置文件配置WCF服务,可提供在部署时而非设计时提供终结点和服务行为数据的灵活性2) 可以使用.NET Framework配置技术对

2014-09-03 15:24:25 648

转载 WCF学习心得------(二)设计和实现服务协定

设计和实现服务协定创建服务协定—WCF术语消息消息是一个独立的数据单元,它可能由几个部分组成,包括消息正文和消息头。服务服务是一个构造,它公开一个或多个终结点,其中每个终结点都公开一个或多个方法。终结点终结点是用来发送或接收消息(或执行这两种操作)的构造。终结点包括一个定义消息可以发送到目的地的位置(地址,一个描述消息如何发送的通信机制规范(绑定)以及对于可以再该位置发

2014-09-03 15:23:29 592

转载 WCF学习心得------(一)什么是WCF

什么是WCF什么是WCF?提供统一的,可用于建立安全、可靠的面向服务的应用的高效开发平台。将web服务的概念直接映射到.NET Framework公共语言运行库(CLR)中对应的内容,包括将消息灵活且可扩展的映射到注入VisualC#等语言实现的服务。该服务模型提供支持松散耦合和版本管理的序列化功能,并提供与注入消息队列(MSMQ),COM+,ASP.NETweb服务、Web服务增强(

2014-09-03 15:22:31 641

转载 WCF初学笔记(1)name和behaviorConfiguration

在WCF的快速发展,它的性能也随之增长,但是有很多人都对配置文件很头疼,现在就教教大家吧。在WCF services配置节中可以定义多个服务,每一个服务都被放到service配置节中,WCF的宿主程序可以通过配置文件找到这些定义的服务并发布这些服务。WCF services配置节包含name和behaviorConfiguration属性。其中,name配置了实现ServiceContract的类

2014-09-03 15:16:12 5761

转载 Why "using" may play tricks on your WCF service host

Many of the examples that have been published on the web about hosting the WCF use the "using" block to initialize the service. This blog entry shows you why this can catch you.The problem arises wh

2014-09-03 14:13:20 590

转载 WCF碰到的一些问题

static ServiceHost myService = null; myService = new ServiceHost(typeof(Service1));myService.Open();问题1Service 'WcfServiceLibrary1.Service1' has zero application (non-infrastructure) endpoints

2014-09-03 09:54:45 744

转载 WCF使用小结:(1)WCF接收HTTP POST数据的处理方法

在WCF 4.0中,为我们创建Restful API有了更好的支持。通过定义UriTemplate,WebInvoke就可以快速开发API接口。这里我记录一下HTTP POST数据时要如何接收POST过来的数据。1,方法一:Stream inputStream 输入流方法(注意看方法例如我的代码

2014-09-03 09:06:01 12864

转载 WCF Service Application和WCF Service Library的区别

最近我在工作中一直用到WCF。一个困惑点就是应该选择哪种类型的工程:WCF Service Application 还是 WCF Service Library。让我们分别看一下,然后检查不同点。希望我们可以总结出一些在不同场景使用的结论。The WCF Service Application 模板你在Visual Studio的”添加新项目”对话框中创建WCF Service Appli

2014-09-03 08:41:26 2707

BB FalshBack 4

BB FalshBack 4 播放器 用于播放用友录制的各种教学文件

2013-08-22

PB 12.5.2 Crack

PB 12.5.2 补丁 适用于Classic和

2013-08-22

PB12.5 4953 补丁

直接覆盖即可 需要下载对应版本号的EBF

2013-02-18

powerbuilder 12.1 7107 Crack

PowerBuilder Classic 12.1 7107完美破解补丁(完美破解PB.net),解压后覆盖就可以了。

2012-09-04

Sql Dbx Ext Pro

数据库通用访问工具,仅有一个EXE,非常小巧

2012-08-31

空空如也

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

TA关注的人

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