资源简介
评论抓取 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
- 下一篇:算法设计的螺钉螺母问题
相关资源
- C# - DynamicDataDisplay.dll图表绘制(内含
- C#界面美化第三方控件(内含皮肤、面
- 数据库 asp.net 课程设计(内含5个文件
- 用asp.net编写的有关食品的网站
- ASP.NET+ACCESS网上购物网站
- C#学籍管理系统(内含数据库)
- asp.net编写的在线同学录网站
- STC12C5A60S2-基于pt100的远程网络温度检
- DevExpress VCL V19.1.2 FullSource〖D7~D10.3Ri
- C# 教程内含多个教程
- ASP.Net编写的在线会议管理系统全部源
- DevExpress VCL V18.2.8 FullSource〖D7~D10.3Ri
- ASP.NET编写的论坛系统源码
- C# 敏感字过滤 内含敏感字字典两个字
- 在线教育管理系统(C#+sql2005)(内含
- 学生信息管理系统源代码 内含C#编写
- C#编写经典猜数字游戏内含源代码
- 酒店管理系统内含简单的车库管理o
评论
共有 条评论