2014-0925

这里示例是Payment Page方式,即跳转到Firstdata网站进行支付

1.申请帐号,配置相关Payment Page

Receipt Page Setup里边设置Relay Response Url,记着开启Relay Response;这个Url是我们自己网站用来更新订单状态的,源码如下:

<?php
require_once("../../../include/common.inc.php");
require_once("../../../users/config.php");
echo"<h2>";
ec 阅读全文>>
                
标签: Payment Page FirstData 国外支付接口 阅读:12307
2014-0505

The type or namespace name 'Schema' does not exist in the namespace 'System.ComponentModel.DataAnnotations' (are you missing an assembly reference?)


报以上错误,添加EntityFramework.dll引用即可

标签: EntityFramework DataAnnotations 阅读:9598
2014-0430

操作XML时报错:The ':' character, hexadecimal value 0x3A, cannot be included in a name.

相关源代码如下:

XNamespace xnamespace = "http://www.sitemaps.org/schemas/sitemap/0.9";
XNamespace xnamespaceForBaiduMobile = "http://www.baidu.com/schemas/sitemap-mobile/1/";
XElement siteMapForArticles = new XElement(xnamespace + "urlset",
     阅读全文>>
                
标签: xml sitemap XElement XNamespace XAttribute 阅读:11232
2014-0403
class ListDistinctDemo
    {
        static void Main(string[] args)
        {
            List<Person> personList = new List<Person>(){
                new Person(3),//重复数据
                new Person(3),
                new Person(2),
                new Person(1)
            };
            //使用匿名方法
            List<Person&g 阅读全文>>
                
标签: IEqualityComparer<T> List C# District Lambda 阅读:15116
2014-0225

下面是参考网络资源和总结一些在java编程中尽可能做到的一些地方

1.尽量在合适的场合使用单例

使用单例可以减轻加载的负担,缩短加载的时间,提高加载的效率,但并不是所有地方都适用于单例,简单来说,单例主要适用于以下三个方面

第一,控制资源的使用,通过线程同步来控制资源的并发访问

第二,控制实例的产生,以达到节约资源的目的

第三,控制数 阅读全文>>

Java编程提高性能时需注意的地方

标签: java优化 java编程注意事项 阅读:11709
2013-1224

说明:FlowLayoutPanel里边放入Label,对Label拖拽实现排序。


1.给Label注册MouseDown事件:

label.MouseDown += new System.Windows.Forms.MouseEventHandler(Label_MouseDown);


响应Label鼠标按下事件内容:11

private void Label_MouseDown(object sender, MouseEventArgs e)
{                 阅读全文>>
                
标签: FlowLayoutPanel Drag and Drop 拖拽排序 阅读:19026