﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-Teacher.NET</title><link>http://www.cnblogs.com/Teacher-DotNET/</link><description>To Be Continued.......</description><language>zh-cn</language><lastBuildDate>Wed, 10 Feb 2010 06:07:38 GMT</lastBuildDate><pubDate>Wed, 10 Feb 2010 06:07:38 GMT</pubDate><ttl>60</ttl><item><title>CalendarExtender简要概述及样式设置</title><link>http://www.cnblogs.com/Teacher-DotNET/archive/2007/04/20/720750.html</link><dc:creator>Teacher-NET</dc:creator><author>Teacher-NET</author><pubDate>Fri, 20 Apr 2007 03:16:00 GMT</pubDate><guid>http://www.cnblogs.com/Teacher-DotNET/archive/2007/04/20/720750.html</guid><description><![CDATA[<p>阅读: 2938 评论: 2 作者: <a href="http://www.cnblogs.com/Teacher-DotNET/" target="_blank">Teacher-NET</a> 发表于 2007-04-20 11:16 <a href="http://www.cnblogs.com/Teacher-DotNET/archive/2007/04/20/720750.html" target="_blank">原文链接</a></p><p><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">　　基于Ajax1.0 开发的开发包AjaxControlToolkit中的CalendarExtender控件，主要是用来实现日期的选取。普遍用法是用一个文本框，获取焦点时弹出日期面板，选择日期后将日期返回到文本框中。简要提一下关于这个控件的属性及样式（Calendar）设置：</span></p>
<ul>
    <li><font face=Tahoma></font><span style="FONT-FAMILY: Tahoma"><strong>TargetControlID<br></strong>通过该属性设置当哪个控件获取焦点时，弹出日期面板并将日期值返回到这个控件中，通常设置为文本框。</span>
    <li><span style="FONT-FAMILY: Tahoma"><strong>Format<br></strong>通过该属性，设置返回日期的格式。</span>
    <li><strong><span style="FONT-FAMILY: Tahoma">PopupButtonID</span></strong><br>通过该属性，设置当哪个控件点击时，弹出日期面板，此控件不授受返回值 </li>
</ul>
样例：<br>
<p>&nbsp;</p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #eeeeee"><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">asp:ScriptManager&nbsp;</span><span style="COLOR: #ff0000">ID</span><span style="COLOR: #0000ff">="ScriptManager1"</span><span style="COLOR: #ff0000">&nbsp;runat</span><span style="COLOR: #0000ff">="server"</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">asp:ScriptManager</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">div</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">br&nbsp;</span><span style="COLOR: #0000ff">/&gt;&lt;</span><span style="COLOR: #800000">br&nbsp;</span><span style="COLOR: #0000ff">/&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">b</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">Default&nbsp;Calendar:</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">b</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">asp:TextBox&nbsp;</span><span style="COLOR: #ff0000">ID</span><span style="COLOR: #0000ff">="Data1"</span><span style="COLOR: #ff0000">&nbsp;runat</span><span style="COLOR: #0000ff">="server"</span><span style="COLOR: #0000ff">&gt;&lt;/</span><span style="COLOR: #800000">asp:TextBox</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">cc1:CalendarExtender&nbsp;</span><span style="COLOR: #ff0000">ID</span><span style="COLOR: #0000ff">="CalendarExtender1"</span><span style="COLOR: #ff0000">&nbsp;runat</span><span style="COLOR: #0000ff">="server"</span><span style="COLOR: #ff0000">&nbsp;TargetControlID</span><span style="COLOR: #0000ff">="Data1"</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">cc1:CalendarExtender</span><span style="COLOR: #0000ff">&gt;</span></strong><strong><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">b</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">Calendar&nbsp;with&nbsp;custom&nbsp;style&nbsp;and&nbsp;Data&nbsp;Format:</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">b</span><span style="COLOR: #0000ff">&gt;&lt;</span><span style="COLOR: #800000">br&nbsp;</span><span style="COLOR: #0000ff">/&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">asp:TextBox&nbsp;</span><span style="COLOR: #ff0000">ID</span><span style="COLOR: #0000ff">="Data2"</span><span style="COLOR: #ff0000">&nbsp;runat</span><span style="COLOR: #0000ff">="server"</span><span style="COLOR: #0000ff">&gt;&lt;/</span><span style="COLOR: #800000">asp:TextBox</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">cc1:CalendarExtender&nbsp;</span><span style="COLOR: #ff0000">ID</span><span style="COLOR: #0000ff">="CalendarExtender2"</span><span style="COLOR: #ff0000">&nbsp;runat</span><span style="COLOR: #0000ff">="server"</span><span style="COLOR: #ff0000">&nbsp;TargetControlID</span><span style="COLOR: #0000ff">="Data2"</span><span style="COLOR: #ff0000">&nbsp;CssClass</span><span style="COLOR: #0000ff">="MyCalendar"</span><span style="COLOR: #ff0000">&nbsp;Format</span><span style="COLOR: #0000ff">="mm,d,yyyy"</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">cc1:CalendarExtender</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">br&nbsp;</span><span style="COLOR: #0000ff">/&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">br&nbsp;</span><span style="COLOR: #0000ff">/&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">b</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">Calendar&nbsp;with&nbsp;associated&nbsp;button：</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">b</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">asp:TextBox&nbsp;</span><span style="COLOR: #ff0000">ID</span><span style="COLOR: #0000ff">="Data3"</span><span style="COLOR: #ff0000">&nbsp;runat</span><span style="COLOR: #0000ff">="server"</span><span style="COLOR: #0000ff">&gt;&lt;/</span><span style="COLOR: #800000">asp:TextBox</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">asp:Image&nbsp;</span><span style="COLOR: #ff0000">ID</span><span style="COLOR: #0000ff">="Image1"</span><span style="COLOR: #ff0000">&nbsp;runat</span><span style="COLOR: #0000ff">="server"</span><span style="COLOR: #ff0000">&nbsp;ImageUrl</span><span style="COLOR: #0000ff">="~/Calendar_scheduleHS.png"</span><span style="COLOR: #ff0000">&nbsp;</span><span style="COLOR: #0000ff">/&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">cc1:CalendarExtender&nbsp;</span><span style="COLOR: #ff0000">ID</span><span style="COLOR: #0000ff">="CalendarExtender3"</span><span style="COLOR: #ff0000">&nbsp;runat</span><span style="COLOR: #0000ff">="server"</span><span style="COLOR: #ff0000">&nbsp;TargetControlID</span><span style="COLOR: #0000ff">="Data3"</span><span style="COLOR: #ff0000">&nbsp;PopupButtonID</span><span style="COLOR: #0000ff">="Image1"</span><span style="COLOR: #0000ff">&gt;</span></strong><span style="COLOR: #000000"><br><strong><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span><strong><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">cc1:CalendarExtender</span><span style="COLOR: #0000ff">&gt;</span></strong></div>
<p><strong><img src="http://www.cnblogs.com/images/cnblogs_com/teacher-dotnet/CalendarExtenderIntro.JPG" border=0><br><br></strong><span style="FONT-FAMILY: Tahoma"><strong>关于CalendarExtende样式设置<br></strong></span><span style="FONT-FAMILY: Tahoma">　　通常，我们总是喜欢通过CSS样式表来设置控件，直接在VS里设置控件样式只会加重页面的负载，原因是样式直接写入了HTML标记输出到了页面，三个样式相同的控件，意味着要下载三套css样式，如果将样式应用在外部的css文件中，可以大大地提高页面性能。<br>　　下面的css文件片断，是上例中第二个CalendarExtender控件指向的<strong>MyCalender</strong>样式类。从中可以看到。CalendarExtender主体的样式设置，是在子类ajax__calendar_container类中进行，其它的样式设置，参照如下：<br></span></p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #eeeeee"><img id=Codehighlighter1_38_122_Open_Image onclick="this.style.display='none'; Codehighlighter1_38_122_Open_Text.style.display='none'; Codehighlighter1_38_122_Closed_Image.style.display='inline'; Codehighlighter1_38_122_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_38_122_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_38_122_Closed_Text.style.display='none'; Codehighlighter1_38_122_Open_Image.style.display='inline'; Codehighlighter1_38_122_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align=top><span style="COLOR: #800000">.MyCalendar&nbsp;.ajax__calendar_container&nbsp;</span><span id=Codehighlighter1_38_122_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">{<img src="http://www.cnblogs.com/Images/dot.gif">}</span><span id=Codehighlighter1_38_122_Open_Text><span style="COLOR: #000000">{</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;border</span><span style="COLOR: #000000">:</span><span style="COLOR: #0000ff">1px&nbsp;solid&nbsp;#646464</span><span style="COLOR: #000000">;</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;background-color</span><span style="COLOR: #000000">:</span><span style="COLOR: #0000ff">&nbsp;lemonchiffon</span><span style="COLOR: #000000">;</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;color</span><span style="COLOR: #000000">:</span><span style="COLOR: #0000ff">&nbsp;red</span><span style="COLOR: #000000">;</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #000000">}</span></span><span style="COLOR: #800000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>.MyCalendar&nbsp;.ajax__calendar_other&nbsp;.ajax__calendar_day,<br><img id=Codehighlighter1_234_254_Open_Image onclick="this.style.display='none'; Codehighlighter1_234_254_Open_Text.style.display='none'; Codehighlighter1_234_254_Closed_Image.style.display='inline'; Codehighlighter1_234_254_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_234_254_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_234_254_Closed_Text.style.display='none'; Codehighlighter1_234_254_Open_Image.style.display='inline'; Codehighlighter1_234_254_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align=top>.MyCalendar&nbsp;.ajax__calendar_other&nbsp;.ajax__calendar_year&nbsp;</span><span id=Codehighlighter1_234_254_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">{<img src="http://www.cnblogs.com/Images/dot.gif">}</span><span id=Codehighlighter1_234_254_Open_Text><span style="COLOR: #000000">{</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;color</span><span style="COLOR: #000000">:</span><span style="COLOR: #0000ff">&nbsp;black</span><span style="COLOR: #000000">;</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #000000">}</span></span><span style="COLOR: #800000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>.MyCalendar&nbsp;.ajax__calendar_hover&nbsp;.ajax__calendar_day,<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>.MyCalendar&nbsp;.ajax__calendar_hover&nbsp;.ajax__calendar_month,<br><img id=Codehighlighter1_423_443_Open_Image onclick="this.style.display='none'; Codehighlighter1_423_443_Open_Text.style.display='none'; Codehighlighter1_423_443_Closed_Image.style.display='inline'; Codehighlighter1_423_443_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_423_443_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_423_443_Closed_Text.style.display='none'; Codehighlighter1_423_443_Open_Image.style.display='inline'; Codehighlighter1_423_443_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align=top>.MyCalendar&nbsp;.ajax__calendar_hover&nbsp;.ajax__calendar_year&nbsp;</span><span id=Codehighlighter1_423_443_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">{<img src="http://www.cnblogs.com/Images/dot.gif">}</span><span id=Codehighlighter1_423_443_Open_Text><span style="COLOR: #000000">{</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;color</span><span style="COLOR: #000000">:</span><span style="COLOR: #0000ff">&nbsp;black</span><span style="COLOR: #000000">;</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #000000">}</span></span><span style="COLOR: #800000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>.MyCalendar&nbsp;.ajax__calendar_active&nbsp;.ajax__calendar_day,<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>.MyCalendar&nbsp;.ajax__calendar_active&nbsp;.ajax__calendar_month,<br><img id=Codehighlighter1_615_657_Open_Image onclick="this.style.display='none'; Codehighlighter1_615_657_Open_Text.style.display='none'; Codehighlighter1_615_657_Closed_Image.style.display='inline'; Codehighlighter1_615_657_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_615_657_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_615_657_Closed_Text.style.display='none'; Codehighlighter1_615_657_Open_Image.style.display='inline'; Codehighlighter1_615_657_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align=top>.MyCalendar&nbsp;.ajax__calendar_active&nbsp;.ajax__calendar_year&nbsp;</span><span id=Codehighlighter1_615_657_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">{<img src="http://www.cnblogs.com/Images/dot.gif">}</span><span id=Codehighlighter1_615_657_Open_Text><span style="COLOR: #000000">{</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;color</span><span style="COLOR: #000000">:</span><span style="COLOR: #0000ff">&nbsp;black</span><span style="COLOR: #000000">;</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;font-weight</span><span style="COLOR: #000000">:</span><span style="COLOR: #0000ff">bold</span><span style="COLOR: #000000">;</span><span style="COLOR: #ff0000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #000000">}</span></span></div>
<p><br><br>&nbsp;</p>
<img src="http://www.cnblogs.com/Teacher-DotNET/aggbug/720750.html?type=1" width="1" height="1" alt=""/><p>评论: 2　<a href="http://www.cnblogs.com/Teacher-DotNET/archive/2007/04/20/720750.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/Teacher-DotNET/archive/2007/04/20/720750.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56836/" target="_blank">MySpace中国全面转型：欲争夺数字音乐版权</a><span style="color:gray">(2010-02-10 14:02)</span><br/>· <a href="http://news.cnblogs.com/n/56835/" target="_blank">王冉：中国会成全球最大移动互联网市场</a><span style="color:gray">(2010-02-10 13:42)</span><br/>· <a href="http://news.cnblogs.com/n/56833/" target="_blank">冷静，社交游戏！</a><span style="color:gray">(2010-02-10 13:38)</span><br/>· <a href="http://news.cnblogs.com/n/56834/" target="_blank">百度新宠：网络视频</a><span style="color:gray">(2010-02-10 13:37)</span><br/>· <a href="http://news.cnblogs.com/n/56832/" target="_blank">国产软件的“拿来主义”：开源软件、主导权</a><span style="color:gray">(2010-02-10 13:26)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56829/" target="_blank">.NET Reflector即将商业化</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>运用HttpWebRequest与HttpWebResponse获取Web页数据</title><link>http://www.cnblogs.com/Teacher-DotNET/archive/2007/04/19/719154.html</link><dc:creator>Teacher-NET</dc:creator><author>Teacher-NET</author><pubDate>Thu, 19 Apr 2007 01:14:00 GMT</pubDate><guid>http://www.cnblogs.com/Teacher-DotNET/archive/2007/04/19/719154.html</guid><description><![CDATA[<p>阅读: 1124 评论: 4 作者: <a href="http://www.cnblogs.com/Teacher-DotNET/" target="_blank">Teacher-NET</a> 发表于 2007-04-19 09:14 <a href="http://www.cnblogs.com/Teacher-DotNET/archive/2007/04/19/719154.html" target="_blank">原文链接</a></p><ul>
    <li><span style="FONT-FAMILY: Tahoma"><strong>HttpWebRequest<br></strong>　　HttpWebRequest 类对 WebRequest 中定义的属性和方法提供支持，也对使用户能够直接与使用 HTTP 的服务器交互的附加属性和方法提供支持。<br>　　使用 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/O_T_System_Net_WebRequest_Create.htm"><font color=#002c99>System.Net.WebRequest.Create</font></a> 方法初始化新的 <strong>HttpWebRequest</strong> 对象。如果统一资源标识符 (URI) 的方案是 <code>http://</code> 或 <code>https://</code>，则 <strong>Create</strong> 返回 <strong>HttpWebRequest</strong> 对象。<br>　　<a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/M_System_Net_HttpWebRequest_GetResponse.htm"><font color=#002c99>GetResponse</font></a> 方法向 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/P_System_Net_HttpWebRequest_RequestUri.htm"><font color=#002c99>RequestUri</font></a> 属性中指定的资源发出同步请求并返回包含该响应的 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/T_System_Net_HttpWebResponse.htm"><font color=#002c99>HttpWebResponse</font></a>。可以使用 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/M_System_Net_HttpWebRequest_BeginGetResponse_1_2bb042b2.htm"><font color=#002c99>BeginGetResponse</font></a> 和 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/M_System_Net_HttpWebRequest_EndGetResponse_1_d7321089.htm"><font color=#002c99>EndGetResponse</font></a> 方法对资源发出异步请求。<br>　　当要向资源发送数据时，<a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/M_System_Net_HttpWebRequest_GetRequestStream.htm"><font color=#002c99>GetRequestStream</font></a> 方法返回用于发送数据的 <mshelp:link tabIndex=0 keywords="T:System.IO.Stream">Stream</mshelp:link> 对象。<a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/M_System_Net_HttpWebRequest_BeginGetRequestStream_1_2bb042b2.htm"><font color=#002c99>BeginGetRequestStream</font></a> 和 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/M_System_Net_HttpWebRequest_EndGetRequestStream_1_d7321089.htm"><font color=#002c99>EndGetRequestStream</font></a> 方法提供对发送数据流的异步访问。<br>　　对于使用 <strong>HttpWebRequest</strong> 的客户端验证身份，客户端证书必须安装在当前用户的&#8220;我的证书&#8221;存储区中。<br>　　如果在访问资源时发生错误，则 <strong>HttpWebRequest</strong> 类将引发 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/T_System_Net_WebException.htm"><font color=#002c99>WebException</font></a>。<a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/P_System_Net_WebException_Status.htm"><font color=#002c99>WebException.Status</font></a> 属性包含指示错误源的 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/T_System_Net_WebExceptionStatus.htm"><font color=#002c99>WebExceptionStatus</font></a> 值。当 <strong>WebException.Status</strong> 为 <mshelp:link tabIndex=0 keywords="F:System.Net.WebExceptionStatus.ProtocolError">WebExceptionStatus.ProtocolError</mshelp:link> 时，<a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/P_System_Net_WebException_Response.htm"><font color=#002c99>Response</font></a> 属性包含从资源接收的 <strong>HttpWebResponse</strong>。<strong><br>　　HttpWebRequest</strong> 将发送到 Internet 资源的公共 HTTP 标头值公开为属性，由方法或系统设置；下表包含完整列表。可以将 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/P_System_Net_HttpWebRequest_Headers.htm"><font color=#002c99>Headers</font></a> 属性中的其他标头设置为名称/值对。注意，服务器和缓存在请求期间可能会更改或添加标头。</span></li>
</ul>
<p><span style="FONT-FAMILY: Tahoma"></span>&nbsp;</p>
<ul>
    <li><span style="FONT-FAMILY: Tahoma"><strong>HttpWebResponse<br></strong></span><span style="FONT-FAMILY: Tahoma">　　此类包含对 <strong>WebResponse</strong> 类中的属性和方法的 HTTP 特定用法的支持。<strong>HttpWebResponse</strong> 类用于生成发送 HTTP 请求和接收 HTTP 响应的 HTTP 独立客户端应用程序。<br>　　决不要直接创建 <strong>HttpWebResponse</strong> 类的实例。而应当使用通过调用 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/M_System_Net_HttpWebRequest_GetResponse.htm"><font color=#002c99>HttpWebRequest.GetResponse</font></a> 所返回的实例。您必须调用 <mshelp:link tabIndex=0 keywords="M:System.IO.Stream.Close">Stream.Close</mshelp:link> 方法或 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/M_System_Net_HttpWebResponse_Close.htm"><font color=#002c99>HttpWebResponse.Close</font></a> 方法来关闭响应并将连接释放出来供重用。不必同时调用 <strong>Stream.Close</strong> 和 <strong>HttpWebResponse.Close</strong>，但这样做不会导致错误。<br>　　从 Internet 资源返回的公共标头信息公开为该类的属性。有关完整的列表，请参见下表。可以从 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref10/html/P_System_Net_HttpWebResponse_Headers.htm"><font color=#002c99>Headers</font></a> 属性以名称/值对的形式读取其他标头。</span></li>
</ul>
<p><span style="FONT-FAMILY: Tahoma"><span style="FONT-FAMILY: Tahoma"><strong><br><img src="http://www.cnblogs.com/images/cnblogs_com/teacher-dotnet/HttpWebRequestAndHttpWebResponse_1.JPG" border=0><br><br><img src="http://www.cnblogs.com/images/cnblogs_com/teacher-dotnet/HttpWebRequestAndHttpWebResponse_2.JPG" border=0><br></strong>关键代码：<br></p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff">Imports</span><span style="COLOR: #000000">&nbsp;System.Net<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">Imports</span><span style="COLOR: #000000">&nbsp;System.IO<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">Imports</span><span style="COLOR: #000000">&nbsp;System.Text.RegularExpressions<br><img id=Codehighlighter1_84_2447_Open_Image onclick="this.style.display='none'; Codehighlighter1_84_2447_Open_Text.style.display='none'; Codehighlighter1_84_2447_Closed_Image.style.display='inline'; Codehighlighter1_84_2447_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_84_2447_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_84_2447_Closed_Text.style.display='none'; Codehighlighter1_84_2447_Open_Image.style.display='inline'; Codehighlighter1_84_2447_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align=top>Partial&nbsp;</span><span id=Codehighlighter1_84_2447_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Class&nbsp;Default4</span><span id=Codehighlighter1_84_2447_Open_Text><span style="COLOR: #0000ff">Class</span><span style="COLOR: #000000">&nbsp;Default4<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Inherits</span><span style="COLOR: #000000">&nbsp;System.Web.UI.Page<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">获取Web页上的数据</span><span style="COLOR: #008000"><br><img id=Codehighlighter1_161_926_Open_Image onclick="this.style.display='none'; Codehighlighter1_161_926_Open_Text.style.display='none'; Codehighlighter1_161_926_Closed_Image.style.display='inline'; Codehighlighter1_161_926_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_161_926_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_161_926_Closed_Text.style.display='none'; Codehighlighter1_161_926_Open_Image.style.display='inline'; Codehighlighter1_161_926_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Protected</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_161_926_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Sub&nbsp;btn_GetResponse_Click()</span><span id=Codehighlighter1_161_926_Open_Text><span style="COLOR: #0000ff">Sub</span><span style="COLOR: #000000">&nbsp;btn_GetResponse_Click(</span><span style="COLOR: #0000ff">ByVal</span><span style="COLOR: #000000">&nbsp;sender&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Object</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #0000ff">ByVal</span><span style="COLOR: #000000">&nbsp;e&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;System.EventArgs)&nbsp;</span><span style="COLOR: #0000ff">Handles</span><span style="COLOR: #000000">&nbsp;btn_GetResponse.Click<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;strURL&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">.Empty<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;strResult&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">.Empty<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;hwr&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;HttpWebRequest&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Nothing</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;hws&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;HttpWebResponse&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Nothing</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.CheckURL(</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.txtURL.Text,&nbsp;strURL)&nbsp;</span><span style="COLOR: #0000ff">Then</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hwr&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;HttpWebRequest.Create(strURL)<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hwr.Method&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Get</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hws&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;hwr.GetResponse<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">为避免乱码，对数据流进行了gb2312编码</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Using&nbsp;sr&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;StreamReader&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">New</span><span style="COLOR: #000000">&nbsp;StreamReader(hws.GetResponseStream,&nbsp;Encoding.GetEncoding(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">gb2312</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">))<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.txtResult.Text&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;sr.ReadToEnd.Trim<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;Using<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Else</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.Label_CheckedResult.Text&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">无效的URL</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End&nbsp;Sub</span></span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">该例程主要是用来匹配输入的ＵＲＬ是否符合标准</span><span style="COLOR: #008000"><br><img id=Codehighlighter1_969_1316_Open_Image onclick="this.style.display='none'; Codehighlighter1_969_1316_Open_Text.style.display='none'; Codehighlighter1_969_1316_Closed_Image.style.display='inline'; Codehighlighter1_969_1316_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_969_1316_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_969_1316_Closed_Text.style.display='none'; Codehighlighter1_969_1316_Open_Image.style.display='inline'; Codehighlighter1_969_1316_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Private</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_969_1316_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Function&nbsp;CheckURL()</span><span id=Codehighlighter1_969_1316_Open_Text><span style="COLOR: #0000ff">Function</span><span style="COLOR: #000000">&nbsp;CheckURL(</span><span style="COLOR: #0000ff">ByVal</span><span style="COLOR: #000000">&nbsp;url&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #0000ff">ByRef</span><span style="COLOR: #000000">&nbsp;URLReturnValue&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">)&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Boolean</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;Regex.IsMatch(url.Trim,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">http(s)?://([\w-]+\.)+[\w-]+(/[\w-&nbsp;./?%&amp;=]*)?</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)&nbsp;</span><span style="COLOR: #0000ff">Then</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;URLReturnValue&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;url.Trim<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Return</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">True</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Else</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;URLReturnValue&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">.Empty<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Return</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">False</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End&nbsp;Function</span></span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">该例程主要检查输入的ＵＲＬ指向的站点是否可用</span><span style="COLOR: #008000"><br><img id=Codehighlighter1_1361_2437_Open_Image onclick="this.style.display='none'; Codehighlighter1_1361_2437_Open_Text.style.display='none'; Codehighlighter1_1361_2437_Closed_Image.style.display='inline'; Codehighlighter1_1361_2437_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_1361_2437_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1361_2437_Closed_Text.style.display='none'; Codehighlighter1_1361_2437_Open_Image.style.display='inline'; Codehighlighter1_1361_2437_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Protected</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_1361_2437_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Sub&nbsp;btn_CheckURLActive_Click()</span><span id=Codehighlighter1_1361_2437_Open_Text><span style="COLOR: #0000ff">Sub</span><span style="COLOR: #000000">&nbsp;btn_CheckURLActive_Click(</span><span style="COLOR: #0000ff">ByVal</span><span style="COLOR: #000000">&nbsp;sender&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Object</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #0000ff">ByVal</span><span style="COLOR: #000000">&nbsp;e&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;System.EventArgs)&nbsp;</span><span style="COLOR: #0000ff">Handles</span><span style="COLOR: #000000">&nbsp;btn_CheckURLActive.Click<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;strURL&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">.Empty<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;strResult&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">.Empty<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;hwr&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;HttpWebRequest&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Nothing</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;hws&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;HttpWebResponse&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Nothing</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.CheckURL(</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.txtURL.Text,&nbsp;strURL)&nbsp;</span><span style="COLOR: #0000ff">Then</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Try</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hwr&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;HttpWebRequest.Create(strURL)<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hwr.Method&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">HEAD</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hwr.Timeout&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">100</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hws&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;hwr.GetResponse<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;hws.StatusCode&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;HttpStatusCode.OK&nbsp;</span><span style="COLOR: #0000ff">Then</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.Label_CheckedResult.Text&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">您输入的URL可以用</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.btn_GetResponse.Enabled&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">True</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Else</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.Label_CheckedResult.Text&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">您输入的URL不可用</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.btn_GetResponse.Enabled&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">False</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Catch</span><span style="COLOR: #000000">&nbsp;ex&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;Exception<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.Label_CheckedResult.Text&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">发生错误，信息如下：</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;ex.Message<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Try</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Else</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Me</span><span style="COLOR: #000000">.Label_CheckedResult.Text&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">无效的URL</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End&nbsp;Sub</span></span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #0000ff">End&nbsp;Class</span></span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span></div>
</span></span>
<img src="http://www.cnblogs.com/Teacher-DotNET/aggbug/719154.html?type=1" width="1" height="1" alt=""/><p>评论: 4　<a href="http://www.cnblogs.com/Teacher-DotNET/archive/2007/04/19/719154.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/Teacher-DotNET/archive/2007/04/19/719154.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56836/" target="_blank">MySpace中国全面转型：欲争夺数字音乐版权</a><span style="color:gray">(2010-02-10 14:02)</span><br/>· <a href="http://news.cnblogs.com/n/56835/" target="_blank">王冉：中国会成全球最大移动互联网市场</a><span style="color:gray">(2010-02-10 13:42)</span><br/>· <a href="http://news.cnblogs.com/n/56833/" target="_blank">冷静，社交游戏！</a><span style="color:gray">(2010-02-10 13:38)</span><br/>· <a href="http://news.cnblogs.com/n/56834/" target="_blank">百度新宠：网络视频</a><span style="color:gray">(2010-02-10 13:37)</span><br/>· <a href="http://news.cnblogs.com/n/56832/" target="_blank">国产软件的“拿来主义”：开源软件、主导权</a><span style="color:gray">(2010-02-10 13:26)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56829/" target="_blank">.NET Reflector即将商业化</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item></channel></rss>