資源簡介
評論抓取 asp.net編寫 內含詳細示例 數據抓取 .net C#

代碼片段和文件信息
using?System;
using?System.Collections;
using?System.Configuration;
using?System.Data;
using?System.Linq;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.HtmlControls;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.xml.Linq;
using?System.Collections.Generic;
using?System.Data.SqlClient;
using?System.Net;
using?System.IO;
using?System.Text.Regularexpressions;
using?System.Threading;
using?System.IO.Compression;
using?System.Text;
public?partial?class?_360buy?:?System.Web.UI.Page
{
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????????if?(!IsPostBack)
????????{
????????????string?sql?=?“select?top?1?fid?from?buy?order?by?id?desc“;
????????????using?(SqlConnection?conn?=?new?SqlConnection(“server=.;database=DX_Comments;uid=sa;pwd=123456;Max?Pool?Size=30;Min?Pool?Size=5;Pooling=true“))?//數據庫連接,,using?表示執行完他的最后一個大括號后釋放資源
????????????{
????????????????conn.Open();
????????????????int?i?=?0;
????????????????SqlCommand?comm?=?new?SqlCommand(sql?conn);
????????????????using?(SqlDataReader?dr?=?comm.ExecuteReader())
????????????????{
????????????????????if?(dr.Read())
????????????????????{
????????????????????????try
????????????????????????{
????????????????????????????i?=?Convert.ToInt32(dr[“fid“])+1;
????????????????????????}
????????????????????????catch?{?i?=?0;?}
????????????????????}
????????????????}
????????????????hidfid.Value?=?i.ToString();
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1293??2012-01-13?10:45??web\360buy.aspx
?????文件???????1611??2012-01-13?10:43??web\360buy.aspx.cs
?????文件???????1268??2012-01-12?17:19??web\360ti
?????文件???????1801??2012-01-12?17:18??web\360ti
?????文件????????436??2012-01-05?11:06??web\ajax.aspx
?????文件??????14565??2012-01-30?10:39??web\ajax.aspx.cs
?????文件????????438??2012-01-12?16:49??web\ajax2.aspx
?????文件???????4454??2012-01-12?17:19??web\ajax2.aspx.cs
?????文件????????438??2012-01-30?10:44??web\ajax3.aspx
?????文件??????12643??2012-05-12?10:13??web\ajax3.aspx.cs
?????文件????????447??2012-02-07?15:28??web\aliexpress\ajax.aspx
?????文件???????8639??2012-02-08?12:10??web\aliexpress\ajax.aspx.cs
?????文件????????449??2012-02-07?16:56??web\aliexpress\ajax2.aspx
?????文件??????20952??2012-02-09?14:05??web\aliexpress\ajax2.aspx.cs
?????文件????????449??2012-02-08?12:07??web\aliexpress\ajax3.aspx
?????文件????????801??2012-02-08?12:09??web\aliexpress\ajax3.aspx.cs
?????文件????????449??2012-02-09?12:19??web\aliexpress\ajax4.aspx
?????文件??????19047??2012-02-09?14:11??web\aliexpress\ajax4.aspx.cs
?????文件????????449??2012-02-09?14:52??web\aliexpress\ajax5.aspx
?????文件???????2656??2012-02-13?10:28??web\aliexpress\ajax5.aspx.cs
?????文件????????449??2012-02-09?16:22??web\aliexpress\ajax6.aspx
?????文件???????2112??2012-02-10?13:44??web\aliexpress\ajax6.aspx.cs
?????文件???????1921??2012-02-09?12:28??web\aliexpress\GetlotNum.aspx
?????文件???????1720??2012-02-09?12:26??web\aliexpress\GetlotNum.aspx.cs
?????文件???????2377??2012-02-08?12:12??web\aliexpress\GetPath.aspx
?????文件????????488??2012-02-07?16:40??web\aliexpress\GetPath.aspx.cs
?????文件???????2017??2012-02-08?11:02??web\aliexpress\GetProduct.aspx
?????文件???????1290??2012-02-07?17:54??web\aliexpress\GetProduct.aspx.cs
?????文件??????78846??2012-02-08?09:44??web\aliexpress\HTMLPage.htm
?????文件???????1671??2012-02-10?15:18??web\aliexpress\HTMLPage2.htm
............此處省略47個文件信息
- 上一篇:測試投屏.zip
- 下一篇:算法設計的螺釘螺母問題
評論
共有 條評論