http://CC318.com

一个程序的窝

我的窝窝 http://CC318.com 这里有更多内容,不信你试试.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年2月13日

摘要: /// 过滤SQL字符。 /// /// 要过滤SQL字符的字符串。 /// 已过滤掉SQL字符的字符串。 public static string ReplaceSQLChar(string str) { if (str == String.Empty) re... 阅读全文

posted @ 2009-02-13 11:23 chaoliu 阅读(449) 评论(0) 推荐(0)

摘要: Vs2005里面的,查询12000条记录,设置RemotingFormat = SerializationFormat.Binary; 再序列化,通过WebService传输,客户端接收,再反序列化,确实效果大大的优于直接传送DataSet,不仅网络传输中如此,即使本机,性能改善也非常明显. 下面分别是WebService里面的方法和客户端反序列化取DataSet的方法. 1. 服务器上面取数据... 阅读全文

posted @ 2009-02-13 11:22 chaoliu 阅读(258) 评论(0) 推荐(0)

摘要: 在2.0 中对数据集序列化和反序列化的方法进行了一下简单的封装,使其可以得到重用的效果.见下面的类DatFormatter. 通 过GetBinaryFormatData方法可以转换数据集为二进制,在服务器端使用,转换数据集格式。发送,客户端接收,得到二进制格式数据,使用 RetrieveDataSet方法,反序列化,得到数据集,进行客户端操作。通过这些简单的操作(序列化和反序列化,将数据压缩... 阅读全文

posted @ 2009-02-13 11:22 chaoliu 阅读(1143) 评论(0) 推荐(0)

摘要: 发送页面:Temp.aspx using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebCo... 阅读全文

posted @ 2009-02-13 11:21 chaoliu 阅读(164) 评论(0) 推荐(0)

摘要: HttpWebRequest 是 .net 基类库中的一个类,在命名空间 System.Net 下面,用来使用户通过 HTTP 协议和服务器交互。 HttpWebRequest 对 HTTP 协议进行了完整的封装,对 HTTP 协议中的 Header, Content, Cookie 都做了属性和方法的支持,很容易就能编写出一个模拟浏览器自动登录的程序。 程序使用 HTTP 协议和服务器交... 阅读全文

posted @ 2009-02-13 11:20 chaoliu 阅读(171) 评论(0) 推荐(0)

摘要: string url = "http://www.217788.com/send.aspx?from=" + TextBox1.Text.Trim() + "&to=" + TextBox2.Text + "&body=" + TextBox4.Text; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); ... 阅读全文

posted @ 2009-02-13 11:19 chaoliu 阅读(465) 评论(0) 推荐(0)

摘要: URL重写 例如配置文件中这么写 实际的意思就是 virtualUrl:如果遇到了www.217788.com/s/access.html这样的虚拟网页 destinationUrl:均会被解释成为www.217788.com/s/Serach.aspx?ID=access这样的实际网页 其中的(.+)就表示为任何字符 阅读全文

posted @ 2009-02-13 11:19 chaoliu 阅读(205) 评论(0) 推荐(0)

摘要: using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Net.Mail; using System.Net; using System.Threading; namespace com.XXX.SPMS.Common ... 阅读全文

posted @ 2009-02-13 11:18 chaoliu 阅读(269) 评论(0) 推荐(0)

摘要: onkeyup="value=value.replace(/[^"d".]/g,'')" 阅读全文

posted @ 2009-02-13 11:17 chaoliu 阅读(166) 评论(0) 推荐(0)

摘要: 1.取消按钮按下时的虚线框 在input里添加属性值 hideFocus 或者 HideFocus=true 2.只读文本框内容 在input里添加属性值 readonly 3.防止退后清空的TEXT文档(可把style内容做做为类引用) 4.ENTER键可以让光标移到下一个输入框 5.只能为中文(有闪动) 6.只能... 阅读全文

posted @ 2009-02-13 11:16 chaoliu 阅读(196) 评论(0) 推荐(0)

http://CC318.com