2010年11月8日

利用WebRequest来实现模拟浏览器通过Post方式向服务器提交数据

摘要: //通过Post发送的数据 string payload=”chkbook=book&keyword=管理”; WebRequest req = WebRequest.Create(”http://localhost/pceo/Search.aspx”); req.Method = “POST”; req.Co... 阅读全文

posted @ 2010-11-08 23:30 linzheng 阅读(768) 评论(0) 推荐(0) 编辑

Asp.net(c#)实现多线程断点续传

摘要: System.IO.Stream iStream = null; // Buffer to read 10K bytes in chunk: byte[] buffer = new Byte[10240]; // Length of the file: int length; // Total bytes to read: long dataToRead; // Identify the f... 阅读全文

posted @ 2010-11-08 23:28 linzheng 阅读(360) 评论(0) 推荐(0) 编辑

HtmlControl与WebControl的区别与用途

摘要: Web控件和Html控件虽然好多功能相同并且长得很像 但是它们的内部实现机制是完全不一样的 Web控件要比Html控件执行效率要好 1. 使用起来也相当方便,举个简单的例子,例如Button的生成: Html控件是将庞大控件集合全部弄到页面中,用到哪个功能,就设置一下属性,如下: <input type=submit/button runat=server> 这样会占用相当大的控件资... 阅读全文

posted @ 2010-11-08 23:26 linzheng 阅读(1501) 评论(0) 推荐(0) 编辑

C#实现写入文本文件内容功能

摘要: private void write_txt(string str1, string str2, string str3) 02{ 03System.DateTime currentTime = System.DateTime.Now; 04string strYMD = currentTime.ToString("d"); 05string FILE_NAME = "MyFileSend" + ... 阅读全文

posted @ 2010-11-08 21:37 linzheng 阅读(1704) 评论(0) 推荐(0) 编辑

导航