国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

.net 后臺的小偷程序

2019-11-18 17:02:21
字體:
供稿:網(wǎng)友

PRivate void Page_Load(object sender, System.EventArgs e)
  {
  
   WebRequest wreq=WebRequest.Create(" 
   HttpWebResponse wresp=(HttpWebResponse)wreq.GetResponse(); 
 
   string HTML =""; 
   Stream s=wresp.GetResponseStream(); 
 
   StreamReader objReader = new StreamReader(s,System.Text.Encoding.GetEncoding("GB2312")); 
 
 
   string sLine = ""; 
   int i = 0; 
 
   while (sLine!=null) 
   { 
    i++; 
    sLine = objReader.ReadLine(); 
    if (sLine!=null) 
     HTML += sLine; 
   } 
 
   String temp= ""; 
   int start,stop; 
 
  // string aa="<div class=/"five-day-forecast night/" style=/"border:none;/">";
  
  //string aa="<div class=/"five-day-forecast/" style=/"border:none;/">";

   string aa="<table><th>Today</th>";
   start = HTML.IndexOf(aa,0,HTML.Length); 
 
   stop = HTML.IndexOf("</table>",start)+8; 
       
 
   temp = HTML.Substring(start, stop - start); 

   this.Weather2.Text=temp;
      string cc="<tr class=/"titles/"><td>";
//    
       int aa1 =temp.IndexOf(cc,0,temp.Length);

           

   int bb=temp.IndexOf("</td>",aa1);

   this.Weather2.Text=temp.Substring(aa1, bb - aa1).ToString(); 
  
 
   string ee="<tr class=/"temps/">";


   int aa2 =temp.IndexOf(ee,0,temp.Length);

           

   int bb1=temp.IndexOf("</td>",aa2);

   this.Label1.Text=temp.Substring(aa2, bb1 - aa2).ToString(); 

  
   // 在此處放置用戶代碼以初始化頁面
  }

 


發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 日土县| 准格尔旗| 德兴市| 林口县| 镇赉县| 藁城市| 房产| 灌阳县| 桓台县| 平武县| 红桥区| 蓝田县| 定兴县| 江达县| 黄龙县| 阳原县| 宁安市| 浮山县| 乐亭县| 什邡市| 德江县| 漳平市| 陵川县| 松滋市| 望都县| 郴州市| 淮南市| 弋阳县| 大渡口区| 安顺市| 巴东县| 甘洛县| 高平市| 伊金霍洛旗| 贞丰县| 浪卡子县| 民县| 西安市| 札达县| 陆良县| 柳州市|