上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: 1.代码using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.Text;namespace WcfServiceLibrary1{ // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IService1”。 [ServiceContract] public interface IService1 { [... 阅读全文
posted @ 2014-01-23 12:10 sulin 阅读(495) 评论(0) 推荐(0)
摘要: 1 使用 netsh.exe 工具C:\Windows\system32>netsh http add urlacl url=http://+:8733/WcfServiceLibrary1 user=lin.su已成功添加 URL 保留项备注:为了使没有管理员权限的用户能够开发 WCF 服务,在安装 Visual Studio 的过程中为命名空间“http://+:8731/Design_Time_Addresses”创建了一个 ACL(访 问控制列表)具体使用方法 netsh.exe 阅读全文
posted @ 2014-01-23 11:46 sulin 阅读(652) 评论(1) 推荐(0)
摘要: 1 效果图2.代码引用组件:using iTextSharp.text;using iTextSharp.text.pdf;using System;using System.Data;using System.IO;using System.Text;using System.Xml;示例: /// /// 利用itextsharp 创建一个简单pdf文件 /// private static void GetCreateDocumentPDF() { //开始创建PDF文档 Docume... 阅读全文
posted @ 2014-01-21 14:44 sulin 阅读(366) 评论(0) 推荐(0)
摘要: 1 应用组件using NPOI.SS.UserModel;using NPOI.HSSF.Util;2.一个简单demo2.1 定义单元格常用到样式的枚举 public enum stylexls { shead,//头 surl, sdate,//时间 snumber,//数字 smoney,//钱 spercentage,//百分比 schinaUpper,//中文大写 scientific,//科学... 阅读全文
posted @ 2014-01-17 10:09 sulin 阅读(551) 评论(0) 推荐(0)
摘要: 1.net 获取客户端ip方法(此方法不是很准确)public static string GetIP() { string str; if (!string.IsNullOrEmpty(HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"])) { str = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString(); ... 阅读全文
posted @ 2014-01-16 11:22 sulin 阅读(253) 评论(0) 推荐(0)
摘要: 1.生成一个表的简单sql语句CREATE OR REPLACE PROCEDURE proc_AutoGenerateSQL( tableName VARCHAR2 ,--参数 需要操作的表名 大小写区别 tableType NUMBER , -- 参数 对表操作类型 0 =insert 1 =update 2=select sqlOrNet NUMBER ,-- 参数 需要生成那种格式sql 1 = sql 0 =net tableOutStr OUT VARCHAR2 --参数 输出需要的sql)IS sql_columns VARCHAR2(2000); sql_columnvalu. 阅读全文
posted @ 2013-12-24 10:04 sulin 阅读(280) 评论(0) 推荐(0)
摘要: public void Encrypt() { //加密解密用到的公钥与私钥 RSACryptoServiceProvider oRSA = new RSACryptoServiceProvider(); string privatekey = oRSA.ToXmlString(true);//私钥 string publickey = oRSA.ToXmlString(false);//公钥 privatekey = XDocument.Load(Server.MapPath("privatekey.xml")).ToString(); publickey = XDocu 阅读全文
posted @ 2013-12-23 09:37 sulin 阅读(652) 评论(0) 推荐(0)
摘要: 1.session and cookie示列:title";else echo "Welcome guest!";?>备注:Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent 修正方法:session_start()调到程序的第一行 阅读全文
posted @ 2013-12-16 16:47 sulin 阅读(170) 评论(0) 推荐(0)
摘要: 1.展示类的继承和静态的方法定义和调用函数Say(); } function addItem($product,$num){ $this->items[$product]+=$num; } function reomveItem($product,$num){ if($this->items[$product]>$num){ $this->items[$product]-=$num; return true; }elseif($this->items[$product]==$num){ unset($this->items[$product]); ... 阅读全文
posted @ 2013-12-13 16:35 sulin 阅读(206) 评论(0) 推荐(0)
摘要: 1.数据准备create table Vertical( Id int , ProjectName varchar(20), ProjectValue int )insert into Vertical values (101,'旅游',100)insert into Vertical values (101,'牧业',101)insert into Vertical values (101,'工业',102)insert into Vertical values (101,'软件',103)insert into Vertica 阅读全文
posted @ 2013-12-12 17:01 sulin 阅读(573) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页