日期:2014-05-18  浏览次数:20654 次

急急急,究竟是哪里出现了问题? C#
using   System;
using   System.Collections.Generic;
using   System.Text;
using   System.Text.RegularExpressions;
using   System.Data;
using   System.Data.SqlClient;
using   System.Net;
using   System.IO;
using   System.Web;


namespace   Notebook_PC_Channel
{
        class   Program
        {
                static   void   Main(string[]   args)
                {
                        string   strconnection= "Server=127.0.0.1;uid=sa;password=wxj;database=ztx; ";
                      //   string   strsql   =   "select   *   from   notebook_pc_brand   where   yes_image_url   is   not   null ";

                        string   strsql   =   "select   yes_image_url   from   notebook_pc_brand   where   yes_image_url   !=   ' ' ";
                        SqlConnection   sqlconnection2   =   new   SqlConnection(strconnection);
                        SqlCommand   sqlcommand2   =   new   SqlCommand(strsql,sqlconnection2);
                        SqlDataReader   sqlread2   =   null;
                        string   mystring= " ";
                        Regex   re   =   new   Regex(@ " <div   class= " "pro_img " "> [\s\S]*?href= " "(? <地址> [\s\S]*?) " "[\s\S]*?src= " "(? <图片> [\s\S]*?) " "[\s\S]*?   class= " "a_lan12b " "> (? <型号> [\s\S]*?) </a> [\s\S]*?   class= " "up_two " "> <a   href= " "(? <价格地址> [\s\S]*?) " "[\s\S]*?¥(? <价格> [\s\S]*?) </a> [\s\S]*?class= " "up_three " "> (? <日期> [\s\S]*?) </div> [\s\S]*? <div   class= " "price_brief " "> \n[\s\S]*?(? <描述> 笔记本[\s\S]*?) </div> [\s\S]*?class= " "info_cnt " "> · <a   href= " "(? <商家地址> [\s\S]*?) " "[\s\S]*? <span   class= " "lan12x " "> (? <商家数量> [\s\S]*?) </span> [\s\S]*? <div   class= " "info_cnt " "> · <a   href= " "(? <评论地址> [\s\S]*?) " "[\s\S]*?   class= " "lan12x " "> (? <评论数量> [\s\S]*?) </span> [\s\S]*?class= " "info_cnt " "> · <a   href= " "(? <新闻地址> [\s\S]*?) " "[\s\S]*? <span   class= " "lan12x " "> (? <新闻数量> [\s\S]*?) </span> [\s\S]*? <div   class= " "comp " "> [\s\S]*?href= " "(? <比较价格> [\s\S]*?) " "[\s\S]*? <table   class= " "offset_tab " "   [\s\S]*?this.page.value,(? <分页数量> [\s\S]*?), '(?