您目前尚未登陆,请选择【登陆】或【注册
首页->全站代码->NETCMSv1.5(Build0509)完整源码版>>NetCMS.Content/Collect/Page.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:NETCMSv1.5(Build0509)完整源码版


当前文件路径:NetCMSv15/NetCMS.Content/Collect/Page.cs 文件类型
普通视图
		            
1//====================================================== 2//== (c)2008 aspxcms inc by NeTCMS v1.0 == 3//== Forum:bbs.aspxcms.com == 4//== Website:www.aspxcms.com == 5//====================================================== 6using System; 7using System.Collections.Generic; 8using System.Text; 9using System.Text.RegularExpressions; 10 11namespace NetCMS.Content.Collect 12{ 13 public class Page 14 { 15 protected string _Url = ""; 16 protected string _Encode = "utf-8"; 17 protected string _Doc = ""; 18 protected string _Error = ""; 19 public Page(string url) 20 { 21 _Url = url; 22 } 23 public Page(string url,string encode) 24 { 25 _Url = url; 26 _Encode = encode; 27 } 28 public bool Fetch() 29 { 30 bool flag = false; 31 try 32 { 33 Uri url = new Uri(_Url); 34 _Doc = Utility.GetPageContent(url, _Encode); 35 flag = true; 36 } 37 catch(UriFormatException e) 38 { 39 _Error = e.ToString(); 40 } 41 catch (System.Net.WebException e) 42 { 43 _Error = e.ToString(); 44 } 45 catch (Exception e) 46 { 47 _Error = e.ToString(); 48 } 49 return flag; 50 } 51 public string LastError 52 { 53 get { return _Error; } 54 } 55 } 56} 57
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:NETCMSv1.5(Build0509)完整源码版

- Asp.net物资流通管理系统源码

- 《用实例学ASP.NET》随书源码

- 《浅谈三层结构》示例代码

- 图书馆管理系统Asp.net2.0源码

- 主持人报名程序源码

- Web图片管理系统代码

- 彬彬Asp.net2.0留言板(Vs200..

- 明博静态新闻文章发布系统源码

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号