摘要: 1、下载OpenVPN(该工具可适用于windws),安装。2、运行mycert.exe工具,填写相应的信息。点击Create Request.会在你指定的output文件夹(最好指定当前mycert.exe目录,这样生成的时候不需要指定目录)下面生成xx.key和xx.req文件。3、运行openssl.exe。输入:req -new -x509 -key private-rsa.key -daysxx天数 -out public-rsa.cer。其中(private-rsa.key是上一步生成的文件,这里需要输入你运行mycert.exe时候的信息)4、继续执行pkcs12 -export 阅读全文
posted @ 2013-11-18 18:01 心道合一 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Issue:an error occurred during local report processing.the definition of the report'Main Report'is invalid. The report definition is not valid.Details:Data at the root level is invalid.Line 1,position 1.Answer 1:1.please check these items,while publish the website:Allow this precompiled site 阅读全文
posted @ 2013-11-18 12:19 心道合一 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 1.///<summary>///转全角的函数(SBCcase)///</summary>///<paramname="input">任意字符串</param>///<returns>全角字符串</returns>///<remarks>///全角空格为12288,半角空格为32///其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248///</remarks>publicstringToSBC(stringinput){//半角转全角:ch 阅读全文
posted @ 2012-11-27 16:36 心道合一 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 先说下起因,conifirm失效为我使用了ajax。在ajax的callback里使用confirm是无效的。也就是说点击取消是会触发服务器事件的。解决方法使用event.returnValue=false;(前提必须是同步的。) 阅读全文
posted @ 2010-12-07 14:43 心道合一 阅读(408) 评论(0) 推荐(0) 编辑
摘要: ----------------建表-----------------------代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1createtablelocation2(3idbigint,4pidbigint,5namenvarchar(50)6)7go8insertlocation9select001,0,'北京市'10unionall11select002,001,'海淀区'12unionall13select003,001,'朝阳区 阅读全文
posted @ 2010-08-18 14:37 心道合一 阅读(456) 评论(0) 推荐(0) 编辑
摘要: js操作cookie的问题。做个标记 /**//************************************************************************| 函数名称: setCookie || 函数功能: 设置cookie函数 || 入口参数: name:cookie名称;value:cookie 值 || 维护记录: RainBow(创建) || 版权所有... 阅读全文
posted @ 2010-07-15 18:10 心道合一 阅读(988) 评论(0) 推荐(0) 编辑
摘要: msdn上有篇很好的wcf入门例子。很适合初学者。一步一步教你如何创建wcf程序。这篇文章其实也就是把msdn上的代码组装了下。首先创建服务器端程序。代码如下:接口:ICalculator,定义了加减乘除四个方法add,subtract,multiply,divide。[代码]接口实现类:CalculatorService[代码]主程序代码:[代码]创建客户端:添加服务引用[代码] 阅读全文
posted @ 2009-09-21 15:03 心道合一 阅读(1136) 评论(9) 推荐(0) 编辑
摘要: [代码][代码] 阅读全文
posted @ 2009-09-17 13:50 心道合一 阅读(278) 评论(0) 推荐(0) 编辑
摘要: [代码]后台code:[代码] 阅读全文
posted @ 2009-09-09 22:27 心道合一 阅读(285) 评论(1) 推荐(0) 编辑
摘要: 最近做航空票务系统,需要对中航信的接口传来的xml进行分析。[代码] 阅读全文
posted @ 2009-09-09 12:10 心道合一 阅读(572) 评论(0) 推荐(0) 编辑