﻿<?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>博客园-MSPlus WebControls For ASP.NET. （服务器端控件）</title><link>http://www.cnblogs.com/mack/</link><description>Upgrade Develop Efficiency,Surprise For U! - Mack.Z</description><language>zh-cn</language><lastBuildDate>Mon, 08 Sep 2008 00:50:54 GMT</lastBuildDate><pubDate>Mon, 08 Sep 2008 00:50:54 GMT</pubDate><ttl>60</ttl><item><title>压缩ASP.NET中的ViewState的改进方法</title><link>http://www.cnblogs.com/mack/archive/2005/07/28/202235.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Thu, 28 Jul 2005 11:55:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2005/07/28/202235.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/202235.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2005/07/28/202235.html#Feedback</comments><slash:comments>22</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/202235.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/202235.html</trackback:ping><description><![CDATA[摘要: 昨晚上写了一篇"压缩ASP.NET中的ViewState"的文章，大家都对这种方式是否会带来性能上消耗的问题比较关心．有一点是肯定的，压缩ViewState的减少网络带宽的占用，肯定会对性能有影响．我作了一个小小的测试.先后用同一个页面加密和不加密的情况下,刷新页面观测w3wp.exe的CPU占用情况.此页面的ViewState大小为3.996 Bytes w3wp.exe 以下是每次刷新的时CP&nbsp;&nbsp;<a href='http://www.cnblogs.com/mack/archive/2005/07/28/202235.html'>阅读全文</a><img src ="http://www.cnblogs.com/mack/aggbug/202235.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42135/" target="_blank">[新闻]美大学在网上建虚拟校园开门授课</a>]]></description></item><item><title>压缩ASP.NET中的ViewState</title><link>http://www.cnblogs.com/mack/archive/2005/07/27/201411.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Wed, 27 Jul 2005 13:47:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2005/07/27/201411.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/201411.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2005/07/27/201411.html#Feedback</comments><slash:comments>25</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/201411.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/201411.html</trackback:ping><description><![CDATA[服务器端控件带来的好外我在这就不多说了，但多过的使用服务器端件保存控件的状态会带来大量的ViewState的情况大家一定遇到过吧．过多的ViewState会很大程度上降低页面的加载速度制成服务器端的性能下降．<BR><BR>以下是结合CSharpZipLib对ViewState进行压缩的方法．<BR><BR><SPAN id=Codehighlighter1_123_1931_Open_Text></SPAN>MSPlus.Web.UI.Page 源码：<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">using</SPAN><SPAN style="COLOR: #000000">&nbsp;System;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">using</SPAN><SPAN style="COLOR: #000000">&nbsp;System.Web.UI;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">using</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">using</SPAN><SPAN style="COLOR: #000000">&nbsp;ICSharpCode.SharpZipLib.Zip.Compression;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">namespace</SPAN><SPAN style="COLOR: #000000">&nbsp;MSPlus.Web.UI<BR><IMG id=Codehighlighter1_124_2146_Open_Image onclick="this.style.display='none'; Codehighlighter1_124_2146_Open_Text.style.display='none'; Codehighlighter1_124_2146_Closed_Image.style.display='inline'; Codehighlighter1_124_2146_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_124_2146_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_124_2146_Closed_Text.style.display='none'; Codehighlighter1_124_2146_Open_Image.style.display='inline'; Codehighlighter1_124_2146_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_124_2146_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_124_2146_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG id=Codehighlighter1_127_192_Open_Image onclick="this.style.display='none'; Codehighlighter1_127_192_Open_Text.style.display='none'; Codehighlighter1_127_192_Closed_Image.style.display='inline'; Codehighlighter1_127_192_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_127_192_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_127_192_Closed_Text.style.display='none'; Codehighlighter1_127_192_Open_Image.style.display='inline'; Codehighlighter1_127_192_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_127_192_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">/**/</SPAN><SPAN id=Codehighlighter1_127_192_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;summary&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;压缩ViewState&nbsp;By&nbsp;Mack.Z&nbsp;（MSPlus）<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;/summary&gt;</SPAN><SPAN style="COLOR: #808080"></SPAN></SPAN><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000">&nbsp;Page&nbsp;:&nbsp;System.Web.UI.Page<BR><IMG id=Codehighlighter1_234_2144_Open_Image onclick="this.style.display='none'; Codehighlighter1_234_2144_Open_Text.style.display='none'; Codehighlighter1_234_2144_Closed_Image.style.display='inline'; Codehighlighter1_234_2144_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_234_2144_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_234_2144_Closed_Text.style.display='none'; Codehighlighter1_234_2144_Open_Image.style.display='inline'; Codehighlighter1_234_2144_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_234_2144_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_2144_Open_Text><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;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">protected</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">override</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;SavePageStateToPersistenceMedium(Object&nbsp;pViewState)<BR><IMG id=Codehighlighter1_317_719_Open_Image onclick="this.style.display='none'; Codehighlighter1_317_719_Open_Text.style.display='none'; Codehighlighter1_317_719_Closed_Image.style.display='inline'; Codehighlighter1_317_719_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_317_719_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_317_719_Closed_Text.style.display='none'; Codehighlighter1_317_719_Open_Image.style.display='inline'; Codehighlighter1_317_719_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_317_719_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_317_719_Open_Text><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;LosFormatter&nbsp;mFormat&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;LosFormatter();<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;StringWriter&nbsp;mWriter&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;StringWriter();<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mFormat.Serialize(mWriter,&nbsp;pViewState);&nbsp;<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;String&nbsp;mViewStateStr&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;mWriter.ToString();&nbsp;<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">byte</SPAN><SPAN style="COLOR: #000000">[]&nbsp;pBytes&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;System.Convert.FromBase64String(mViewStateStr);<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pBytes&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;Compress(pBytes);&nbsp;<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;vStateStr&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;System.Convert.ToBase64String(pBytes);&nbsp;<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RegisterHiddenField(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">__MSPVSTATE</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;vStateStr);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</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;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">protected</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">override</SPAN><SPAN style="COLOR: #000000">&nbsp;Object&nbsp;LoadPageStateFromPersistenceMedium()<BR><IMG id=Codehighlighter1_789_1062_Open_Image onclick="this.style.display='none'; Codehighlighter1_789_1062_Open_Text.style.display='none'; Codehighlighter1_789_1062_Closed_Image.style.display='inline'; Codehighlighter1_789_1062_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_789_1062_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_789_1062_Closed_Text.style.display='none'; Codehighlighter1_789_1062_Open_Image.style.display='inline'; Codehighlighter1_789_1062_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_789_1062_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_789_1062_Open_Text><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;String&nbsp;vState&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.Request.Form.Get(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">__MSPVSTATE</SPAN><SPAN style="COLOR: #000000">"</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">byte</SPAN><SPAN style="COLOR: #000000">[]&nbsp;pBytes&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;System.Convert.FromBase64String(vState);<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pBytes&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;DeCompress(pBytes);<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LosFormatter&nbsp;mFormat&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;LosFormatter();<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000">&nbsp;mFormat.Deserialize(System.Convert.ToBase64String(pBytes));<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</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><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">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">byte</SPAN><SPAN style="COLOR: #000000">[]&nbsp;Compress(</SPAN><SPAN style="COLOR: #0000ff">byte</SPAN><SPAN style="COLOR: #000000">[]&nbsp;pBytes)&nbsp;<BR><IMG id=Codehighlighter1_1116_1548_Open_Image onclick="this.style.display='none'; Codehighlighter1_1116_1548_Open_Text.style.display='none'; Codehighlighter1_1116_1548_Closed_Image.style.display='inline'; Codehighlighter1_1116_1548_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1116_1548_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1116_1548_Closed_Text.style.display='none'; Codehighlighter1_1116_1548_Open_Image.style.display='inline'; Codehighlighter1_1116_1548_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_1116_1548_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_1116_1548_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<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;MemoryStream&nbsp;mMemory&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;MemoryStream();<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deflater&nbsp;mDeflater&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;Deflater(ICSharpCode.SharpZipLib.Zip.Compression.Deflater.BEST_COMPRESSION);<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;ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream&nbsp;mStream&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream(mMemory,mDeflater,</SPAN><SPAN style="COLOR: #000000">131072</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mStream.Write(pBytes,</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">,pBytes.Length);<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;mStream.Close();<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000">&nbsp;mMemory.ToArray();<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<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><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">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">byte</SPAN><SPAN style="COLOR: #000000">[]&nbsp;DeCompress(</SPAN><SPAN style="COLOR: #0000ff">byte</SPAN><SPAN style="COLOR: #000000">[]&nbsp;pBytes)&nbsp;<BR><IMG id=Codehighlighter1_1605_2139_Open_Image onclick="this.style.display='none'; Codehighlighter1_1605_2139_Open_Text.style.display='none'; Codehighlighter1_1605_2139_Closed_Image.style.display='inline'; Codehighlighter1_1605_2139_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1605_2139_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1605_2139_Closed_Text.style.display='none'; Codehighlighter1_1605_2139_Open_Image.style.display='inline'; Codehighlighter1_1605_2139_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_1605_2139_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_1605_2139_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<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;ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream&nbsp;mStream&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream(</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;MemoryStream(pBytes));<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;<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;MemoryStream&nbsp;mMemory&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;MemoryStream();<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;Int32&nbsp;mSize;<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">byte</SPAN><SPAN style="COLOR: #000000">[]&nbsp;mWriteData&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">byte</SPAN><SPAN style="COLOR: #000000">[</SPAN><SPAN style="COLOR: #000000">4096</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #0000ff">true</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_1913_2085_Open_Image onclick="this.style.display='none'; Codehighlighter1_1913_2085_Open_Text.style.display='none'; Codehighlighter1_1913_2085_Closed_Image.style.display='inline'; Codehighlighter1_1913_2085_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1913_2085_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1913_2085_Closed_Text.style.display='none'; Codehighlighter1_1913_2085_Open_Image.style.display='inline'; Codehighlighter1_1913_2085_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_1913_2085_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_1913_2085_Open_Text><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;mSize&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;mStream.Read(mWriteData,&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">,&nbsp;mWriteData.Length);<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;(mSize&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_1998_2046_Open_Image onclick="this.style.display='none'; Codehighlighter1_1998_2046_Open_Text.style.display='none'; Codehighlighter1_1998_2046_Closed_Image.style.display='inline'; Codehighlighter1_1998_2046_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1998_2046_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1998_2046_Closed_Text.style.display='none'; Codehighlighter1_1998_2046_Open_Image.style.display='inline'; Codehighlighter1_1998_2046_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_1998_2046_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_1998_2046_Open_Text><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;mMemory.Write(mWriteData,&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">,&nbsp;mSize);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></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 id=Codehighlighter1_2061_2080_Open_Image onclick="this.style.display='none'; Codehighlighter1_2061_2080_Open_Text.style.display='none'; Codehighlighter1_2061_2080_Closed_Image.style.display='inline'; Codehighlighter1_2061_2080_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2061_2080_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2061_2080_Closed_Text.style.display='none'; Codehighlighter1_2061_2080_Open_Image.style.display='inline'; Codehighlighter1_2061_2080_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_2061_2080_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_2061_2080_Open_Text><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;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">break</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mStream.Close();<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;mMemory.ToArray();<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><BR>使用方法（ASPX.CS页面继承MSPlus.Web.UI.Page）：<STRONG style="COLOR: red; FONT-FAMILY: Arial; BACKGROUND-COLOR: yellow">public class PageClass : System.Web.UI.Page</STRONG><BR><BR><BR>测试下来的结果：压缩后的ViewState只有原来的<SPAN style="COLOR: red"><STRONG style="FONT-FAMILY: Arial">20%</STRONG></SPAN>!<BR><BR>
<HR>

<DIV class=postText>我作了一个小小的测试.先后用同一个页面加密和不加密的情况下,刷新页面观测w3wp.exe的CPU占用情况.此页面的ViewState大小为3.996 Bytes <BR><BR>w3wp.exe 以下是每次刷新的时CPU的情况<BR><BR>05 03 05 03 06 05 05 08 03 05 03 不加密，平均是 4.6<BR>05 05 06 05 05 03 08 02 03 05 06 加密，平均是5.3<BR><BR></DIV><img src ="http://www.cnblogs.com/mack/aggbug/201411.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42134/" target="_blank">[新闻]JavaScript将成Silverlight的最大对手?</a>]]></description></item><item><title>MSPlus.TabControl V1.1 版本发布</title><link>http://www.cnblogs.com/mack/archive/2005/07/14/193084.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Thu, 14 Jul 2005 14:55:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2005/07/14/193084.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/193084.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2005/07/14/193084.html#Feedback</comments><slash:comments>48</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/193084.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/193084.html</trackback:ping><description><![CDATA[<P>MSPlus.TabControl支持状态保存，SelectedIndexChanged事件，支持多层嵌套等功能，支持动态新增删除修改TabPage并保存其状态．．．</P>
<P><STRONG>MSPlus.TabControl常用属性和方法以及事件的说明：</STRONG></P>
<P>MSPlus.TabControl.Width = 控件的宽度<BR>MSPlus.TabControl.Height = 控件的高度<BR>MSPlus.TabControl.SelectedIndex&nbsp; ＝ 获取或设置选中的Tab页索引编号<BR>MSPlus.TabControl.SelectionMode（Server or Client）= 每次Tab页的切换在客户端完成还是每次都需要返回服务器端<BR>MSPlus.TabControl.Items = 获取所有Tab页的容器<BR>MSPlus.TabControl.SelectedIndexChanged（事件）= Tab选中页改变时触发的事件</P>
<P><STRONG>MSPlus.TabPage常用属性和方法的说明：</STRONG><BR>MSPlus.TabPage.ID = TabPage编号(不可重复)<BR>MSPlus.TabPage.Caption = TabPage的标题<BR>MSPlus.TabPage.Enabled = TabPage是否可用<BR>MSPlus.TabPage.Visabled = TabPage是否显示</P>
<P><STRONG>MSPlus.TabControl.Items 常用属性和方法的说明</STRONG><BR>public void Add(TabPage pTab)&nbsp; 动态增加一个页<BR>public void Insert(Int32 pIndex, TabPage pItem)&nbsp; 动态插入一个页<BR>public void Remove(TabPage pTab)&nbsp; 动态移除一个页<BR>public Boolean Contains(TabPage pTab) 指定的页是否存在<BR>public int IndexOf(TabPage pItem) 指定页的索引编号<BR>public void CopyTo(TabPage[] pArray, Int32 pIndex) 批量指定位置的复制<BR><BR><BR><SPAN style="COLOR: red; BACKGROUND-COLOR: yellow"><A href="http://mack.cnblogs.com/articles/192438.html"><SPAN style="COLOR: red; BACKGROUND-COLOR: yellow"><STRONG style="COLOR: red; BACKGROUND-COLOR: yellow">下载MSPlus.TabControl V1.1 演示和控件 - 2005-7-15 </STRONG></SPAN></A></SPAN></P><img src ="http://www.cnblogs.com/mack/aggbug/193084.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42133/" target="_blank">[新闻]没有谷歌就活不下去的四个网站</a>]]></description></item><item><title>发布MSPlus TabControl WebControl V1.0.0710 版本</title><link>http://www.cnblogs.com/mack/archive/2005/07/14/192441.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Wed, 13 Jul 2005 16:16:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2005/07/14/192441.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/192441.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2005/07/14/192441.html#Feedback</comments><slash:comments>113</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/192441.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/192441.html</trackback:ping><description><![CDATA[<IMG src="http://www.cnblogs.com/images/cnblogs_com/mack/TabControl.gif" border=0><BR><BR>MSPlus.TabControl支持状态保存，SelectedIndexChanged事件，支持多层嵌套等功能．．．<BR><BR><STRONG>MSPlus.TabControl常用属性和方法以及事件的说明：</STRONG><BR><BR>Unit Width = 控件的宽度<BR>Unit Height = 控件的高度<BR>Int32 SelectedIndex&nbsp; ＝ 获取或设置选中的Tab页索引编号<BR>SelectionMode（Server or Client）= 每次Tab页的切换在客户端完成还是每次都需要返回服务器端<BR>Items = 获取所有Tab页的容器<BR>SelectedIndexChanged（事件）= Tab选中页改变时触发的事件<BR><BR><STRONG>使用样例：</STRONG><BR><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG id=Codehighlighter1_2_76_Open_Image onclick="this.style.display='none'; Codehighlighter1_2_76_Open_Text.style.display='none'; Codehighlighter1_2_76_Closed_Image.style.display='inline'; Codehighlighter1_2_76_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_2_76_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2_76_Closed_Text.style.display='none'; Codehighlighter1_2_76_Open_Image.style.display='inline'; Codehighlighter1_2_76_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #ffff00">&lt;%</SPAN><SPAN id=Codehighlighter1_2_76_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_2_76_Open_Text><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">@&nbsp;Register&nbsp;TagPrefix</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">msp</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;Namespace</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">MSPlus</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;Assembly</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">MSPlus.TabControl</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;</SPAN></SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #ffff00">%&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>..<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">LINK&nbsp;</SPAN><SPAN style="COLOR: #ff0000">href</SPAN><SPAN style="COLOR: #0000ff">="Common/CSS/Default.CSS"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;type</SPAN><SPAN style="COLOR: #0000ff">="text/css"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;rel</SPAN><SPAN style="COLOR: #0000ff">="stylesheet"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">script&nbsp;</SPAN><SPAN style="COLOR: #ff0000">language</SPAN><SPAN style="COLOR: #0000ff">="JavaScript"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;src</SPAN><SPAN style="COLOR: #0000ff">="Common/JavaScript/Tab.js"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">script</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>..<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:tabcontrol&nbsp;</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="TabControl1"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;style</SPAN><SPAN style="COLOR: #0000ff">="Z-INDEX:&nbsp;100;&nbsp;LEFT:&nbsp;128px;&nbsp;POSITION:&nbsp;absolute;&nbsp;TOP:&nbsp;80px"</SPAN><SPAN style="COLOR: #ff0000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;runat</SPAN><SPAN style="COLOR: #0000ff">="server"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;SelectionMode</SPAN><SPAN style="COLOR: #0000ff">="Server"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;width</SPAN><SPAN style="COLOR: #0000ff">="500"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;height</SPAN><SPAN style="COLOR: #0000ff">="150"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:TabPage&nbsp;</SPAN><SPAN style="COLOR: #ff0000">Caption</SPAN><SPAN style="COLOR: #0000ff">="春暖花开"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;ID</SPAN><SPAN style="COLOR: #0000ff">="tabPage1"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:TabControl&nbsp;</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="TabControl2"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;runat</SPAN><SPAN style="COLOR: #0000ff">="server"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;height</SPAN><SPAN style="COLOR: #0000ff">="120"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:TabPage&nbsp;</SPAN><SPAN style="COLOR: #ff0000">Caption</SPAN><SPAN style="COLOR: #0000ff">="春暖"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;ID</SPAN><SPAN style="COLOR: #0000ff">="tabPage11"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">多层TabControl嵌套</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">msp:TabPage</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:TabPage&nbsp;</SPAN><SPAN style="COLOR: #ff0000">Caption</SPAN><SPAN style="COLOR: #0000ff">="夏日"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;ID</SPAN><SPAN style="COLOR: #0000ff">="tabPage21"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">msp:TabPage</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:TabPage&nbsp;</SPAN><SPAN style="COLOR: #ff0000">Caption</SPAN><SPAN style="COLOR: #0000ff">="秋高"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;ID</SPAN><SPAN style="COLOR: #0000ff">="tabPage31"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">msp:TabPage</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:TabPage&nbsp;</SPAN><SPAN style="COLOR: #ff0000">Caption</SPAN><SPAN style="COLOR: #0000ff">="冬季"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;ID</SPAN><SPAN style="COLOR: #0000ff">="tabPage41"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">msp:TabPage</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">msp:TabControl</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:TabPage</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:TabPage&nbsp;</SPAN><SPAN style="COLOR: #ff0000">Caption</SPAN><SPAN style="COLOR: #0000ff">="夏日炎炎"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;ID</SPAN><SPAN style="COLOR: #0000ff">="tabPage2"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">asp:TextBox&nbsp;</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="TextBox1"</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><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">asp:Button&nbsp;</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="Button3"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Text</SPAN><SPAN style="COLOR: #0000ff">="DoPostBack（测试状态保存）"</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:Button</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:TabPage</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:TabPage&nbsp;</SPAN><SPAN style="COLOR: #ff0000">Caption</SPAN><SPAN style="COLOR: #0000ff">="秋高气爽"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;ID</SPAN><SPAN style="COLOR: #0000ff">="tabPage3"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">asp:Button&nbsp;</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="Button2"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Text</SPAN><SPAN style="COLOR: #0000ff">="DoPostBack"</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:Button</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:TabPage</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:TabPage&nbsp;</SPAN><SPAN style="COLOR: #ff0000">Caption</SPAN><SPAN style="COLOR: #0000ff">="冬季运动"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;ID</SPAN><SPAN style="COLOR: #0000ff">="tabPage4"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">asp:CheckBox&nbsp;</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="CheckBox1"</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:CheckBox</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:TabPage</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">msp:tabcontrol</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV></DIV><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">namespace</SPAN><SPAN style="COLOR: #000000">&nbsp;TabControlDemo<BR><IMG id=Codehighlighter1_25_854_Open_Image onclick="this.style.display='none'; Codehighlighter1_25_854_Open_Text.style.display='none'; Codehighlighter1_25_854_Closed_Image.style.display='inline'; Codehighlighter1_25_854_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_25_854_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_25_854_Closed_Text.style.display='none'; Codehighlighter1_25_854_Open_Image.style.display='inline'; Codehighlighter1_25_854_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_25_854_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_25_854_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG id=Codehighlighter1_28_78_Open_Image onclick="this.style.display='none'; Codehighlighter1_28_78_Open_Text.style.display='none'; Codehighlighter1_28_78_Closed_Image.style.display='inline'; Codehighlighter1_28_78_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_28_78_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_28_78_Closed_Text.style.display='none'; Codehighlighter1_28_78_Open_Image.style.display='inline'; Codehighlighter1_28_78_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_28_78_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">/**/</SPAN><SPAN id=Codehighlighter1_28_78_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;summary&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;WebForm1&nbsp;的摘要说明。<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;/summary&gt;</SPAN><SPAN style="COLOR: #808080"></SPAN></SPAN><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000">&nbsp;WebForm1&nbsp;:&nbsp;System.Web.UI.Page<BR><IMG id=Codehighlighter1_124_853_Open_Image onclick="this.style.display='none'; Codehighlighter1_124_853_Open_Text.style.display='none'; Codehighlighter1_124_853_Closed_Image.style.display='inline'; Codehighlighter1_124_853_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_124_853_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_124_853_Closed_Text.style.display='none'; Codehighlighter1_124_853_Open_Image.style.display='inline'; Codehighlighter1_124_853_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_124_853_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_124_853_Open_Text><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">protected</SPAN><SPAN style="COLOR: #000000">&nbsp;MSPlus.TabControl&nbsp;TabControl1;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<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">private</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;Page_Load(</SPAN><SPAN style="COLOR: #0000ff">object</SPAN><SPAN style="COLOR: #000000">&nbsp;sender,&nbsp;System.EventArgs&nbsp;e)<BR><IMG id=Codehighlighter1_233_259_Open_Image onclick="this.style.display='none'; Codehighlighter1_233_259_Open_Text.style.display='none'; Codehighlighter1_233_259_Closed_Image.style.display='inline'; Codehighlighter1_233_259_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_233_259_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_233_259_Closed_Text.style.display='none'; Codehighlighter1_233_259_Open_Image.style.display='inline'; Codehighlighter1_233_259_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_233_259_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_233_259_Open_Text><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: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;在此处放置用户代码以初始化页面</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_264_748_Open_Image onclick="this.style.display='none'; Codehighlighter1_264_748_Open_Text.style.display='none'; Codehighlighter1_264_748_Closed_Image.style.display='inline'; Codehighlighter1_264_748_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_264_748_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_264_748_Closed_Text.style.display='none'; Codehighlighter1_264_748_Open_Image.style.display='inline'; Codehighlighter1_264_748_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_264_748_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">Web&nbsp;窗体设计器生成的代码</SPAN><SPAN id=Codehighlighter1_264_748_Open_Text><SPAN style="COLOR: #0000ff">#region</SPAN><SPAN style="COLOR: #000000">&nbsp;Web&nbsp;窗体设计器生成的代码</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">override</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">protected</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;OnInit(EventArgs&nbsp;e)<BR><IMG id=Codehighlighter1_335_439_Open_Image onclick="this.style.display='none'; Codehighlighter1_335_439_Open_Text.style.display='none'; Codehighlighter1_335_439_Closed_Image.style.display='inline'; Codehighlighter1_335_439_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_335_439_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_335_439_Closed_Text.style.display='none'; Codehighlighter1_335_439_Open_Image.style.display='inline'; Codehighlighter1_335_439_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_335_439_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_335_439_Open_Text><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: #008000">//</SPAN><SPAN style="COLOR: #008000"><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">&nbsp;CODEGEN:&nbsp;该调用是&nbsp;ASP.NET&nbsp;Web&nbsp;窗体设计器所必需的。<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">//<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;InitializeComponent();<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">base</SPAN><SPAN style="COLOR: #000000">.OnInit(e);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></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;<BR><IMG id=Codehighlighter1_446_521_Open_Image onclick="this.style.display='none'; Codehighlighter1_446_521_Open_Text.style.display='none'; Codehighlighter1_446_521_Closed_Image.style.display='inline'; Codehighlighter1_446_521_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_446_521_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_446_521_Closed_Text.style.display='none'; Codehighlighter1_446_521_Open_Image.style.display='inline'; Codehighlighter1_446_521_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_446_521_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">/**/</SPAN><SPAN id=Codehighlighter1_446_521_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;summary&gt;</SPAN><SPAN style="COLOR: #008000"><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: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;设计器支持所需的方法&nbsp;-&nbsp;不要使用代码编辑器修改<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: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;此方法的内容。<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;/summary&gt;</SPAN><SPAN style="COLOR: #808080"></SPAN></SPAN><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;InitializeComponent()<BR><IMG id=Codehighlighter1_561_735_Open_Image onclick="this.style.display='none'; Codehighlighter1_561_735_Open_Text.style.display='none'; Codehighlighter1_561_735_Closed_Image.style.display='inline'; Codehighlighter1_561_735_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_561_735_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_561_735_Closed_Text.style.display='none'; Codehighlighter1_561_735_Open_Image.style.display='inline'; Codehighlighter1_561_735_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_561_735_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_561_735_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;&nbsp;&nbsp;<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">this</SPAN><SPAN style="COLOR: #000000">.TabControl1.SelectedIndexChanged&nbsp;</SPAN><SPAN style="COLOR: #000000">+=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;System.EventHandler(</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.TabControl1_SelectedIndexChanged);<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">this</SPAN><SPAN style="COLOR: #000000">.Load&nbsp;</SPAN><SPAN style="COLOR: #000000">+=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;System.EventHandler(</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.Page_Load);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">#endregion</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;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;TabControl1_SelectedIndexChanged(</SPAN><SPAN style="COLOR: #0000ff">object</SPAN><SPAN style="COLOR: #000000">&nbsp;sender,&nbsp;System.EventArgs&nbsp;e)<BR><IMG id=Codehighlighter1_836_849_Open_Image onclick="this.style.display='none'; Codehighlighter1_836_849_Open_Text.style.display='none'; Codehighlighter1_836_849_Closed_Image.style.display='inline'; Codehighlighter1_836_849_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_836_849_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_836_849_Closed_Text.style.display='none'; Codehighlighter1_836_849_Open_Image.style.display='inline'; Codehighlighter1_836_849_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_836_849_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_836_849_Open_Text><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;事件被触发<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</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/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN></DIV></DIV></SPAN><BR><BR>需要源码的朋友,可留下EMAIL<BR><BR><SPAN style="COLOR: red; BACKGROUND-COLOR: yellow"><A href="http://mack.cnblogs.com/articles/192438.html"><SPAN style="COLOR: red; BACKGROUND-COLOR: yellow"><STRONG style="COLOR: red; BACKGROUND-COLOR: yellow">下载MSPlus.TabControl V1.0 Beta演示和控件</STRONG></SPAN></A><BR><BR></SPAN>
<HR>
<BR><STRONG style="COLOR: red; BACKGROUND-COLOR: yellow"><A href="http://www.cnblogs.com/mack/archive/2005/07/14/193084.html"><STRONG style="COLOR: red; BACKGROUND-COLOR: yellow">查看MSPlus.TabControl V1.1 更新说明</STRONG></A></STRONG><BR><BR><SPAN style="COLOR: red; BACKGROUND-COLOR: yellow"><A href="http://mack.cnblogs.com/articles/192438.html"><SPAN style="COLOR: red; BACKGROUND-COLOR: yellow"><STRONG style="COLOR: red; BACKGROUND-COLOR: yellow">下载MSPlus.TabControl V1.1 演示和控件 - 2005-7-15 </STRONG></SPAN></A></SPAN><BR><BR><img src ="http://www.cnblogs.com/mack/aggbug/192441.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42133/" target="_blank">[新闻]没有谷歌就活不下去的四个网站</a>]]></description></item><item><title>Html Convert Image (Html2Image)</title><link>http://www.cnblogs.com/mack/archive/2005/07/09/189520.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Sat, 09 Jul 2005 14:23:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2005/07/09/189520.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/189520.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2005/07/09/189520.html#Feedback</comments><slash:comments>46</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/189520.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/189520.html</trackback:ping><description><![CDATA[<STRONG>将HTML网页（文本）等转换为图片的类库</STRONG><BR><BR><IMG src="http://www.cnblogs.com/images/cnblogs_com/mack/Html2ImageExample.gif" border=0><BR><BR>以上是使用 HtmlConvertImage (Html2Image) 类库所作的演示小工具<BR><BR><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">MSPlus.HtmlConvertImage&nbsp;mHCont&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;MSPlus.HtmlConvertImage();<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">设置图片的长度，如果网页的长度超过一张图片的长度时自己将其分割在多张图片中</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">mHCont.ConvertImage(mUrl,Int32.Parse(textBox4.Text),mSaveTo,mFileName);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">所有网页生成在一张图片中</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">MSPlus.HtmlConvertImage&nbsp;mHCont&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;MSPlus.HtmlConvertImage();<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>mHCont.ConvertImage(mUrl,mSaveTo,mFileName);</SPAN></DIV></DIV><BR><BR>以下是分割后的效果<BR><BR><STRONG>ATA0.PNG<BR></STRONG><BR><IMG src="http://www.cnblogs.com/images/cnblogs_com/mack/ATA0.gif" border=0><BR><BR><STRONG>ATA1.PNG</STRONG><BR><BR><IMG src="http://www.cnblogs.com/images/cnblogs_com/mack/ATA1.gif" border=0><BR><BR><STRONG>ATA2.PNG<BR></STRONG><BR><BR><IMG src="http://www.cnblogs.com/images/cnblogs_com/mack/ATA2.gif" border=0><BR><STRONG>HtmlConvertImage.Dll 使用说明</STRONG><BR><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">自定义长度的获取方式，文件将会自动切割．返回多张图片的文件名<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;String[]&nbsp;ConvertImage(String&nbsp;mUrl,&nbsp;Int32&nbsp;mPageLength,&nbsp;String&nbsp;mOutputDir,&nbsp;String&nbsp;mOutputFile)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>网页保存为一张图片，图片的长度就是网页的长度．返回图片文件名<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;String&nbsp;ConvertImage(String&nbsp;mUrl,&nbsp;String&nbsp;mOutputDir,&nbsp;String&nbsp;mOutputFile)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>设置图片上的水印<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;MarkStr</SPAN></DIV></DIV><BR>随笔：因为项目的需要，当初是想从网上找个能完成Html2Image的工具，但找了半天只找到一家，而且还是要收费，并且没有DLL只是一个EXE应用程序（就是这家 <A href="http://www.sysimage.com/windows/html2image/default.aspx">http://www.sysimage.com/windows/html2image/default.aspx</A>），无奈之下只能自行开发．目前实现的功能比较简单，等有空了在继续完善！哈哈<BR><BR><BR><A href="http://www.cnblogs.com/mack/articles/189511.html"><STRONG style="FONT-SIZE: 14pt; FONT-FAMILY: Arial; BACKGROUND-COLOR: #ffff99">下载 HtmlConvertImage.RAR</STRONG></A> <img src ="http://www.cnblogs.com/mack/aggbug/189520.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42132/" target="_blank">[新闻]Google 10周岁生日</a>]]></description></item><item><title>Gaia（MasterPage）我的第一个开源控件</title><link>http://www.cnblogs.com/mack/archive/2005/06/18/176869.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Sat, 18 Jun 2005 13:22:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2005/06/18/176869.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/176869.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2005/06/18/176869.html#Feedback</comments><slash:comments>16</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/176869.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/176869.html</trackback:ping><description><![CDATA[摘要: Gaia是一个主版頁面规划工具　　GAIA(Master Page)可以讓您規劃出網站主體風格，使其他的內容頁面或是不同主題都擁有一致的外觀樣式。將來修改網站風格的時候，只需將Master Page換掉，就可以擁有一個全新風格的網站。GAIA V1.0 Beta(MASTERPAGE)下载地址： http://www.cnblogs.com/mack/articles/176872.html类文件&nbsp;&nbsp;<a href='http://www.cnblogs.com/mack/archive/2005/06/18/176869.html'>阅读全文</a><img src ="http://www.cnblogs.com/mack/aggbug/176869.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42131/" target="_blank">[新闻]祝Google 10周岁生日快乐</a>]]></description></item><item><title>MSN Winks 文件的解密</title><link>http://www.cnblogs.com/mack/archive/2005/05/16/156233.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Mon, 16 May 2005 02:33:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2005/05/16/156233.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/156233.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2005/05/16/156233.html#Feedback</comments><slash:comments>15</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/156233.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/156233.html</trackback:ping><description><![CDATA[自从装了MSN7之后就感觉他其中的Winks挺好玩的，但用来用去也就这么些。昨天晚上洗澡时就在想如果能DIY Winks的话，那到时挺好玩的。<BR>今天一早来公司，正事到先没干（哈，别想同事们看到了）。就先忙着研究Winks了。<BR><BR>首先找到了MSN Winks的所在目录 <BR>一般也就是以下路径，中间的zhuguoping和3662667825会应登录帐户和环境而有所不同。<BR>C:\Documents and Settings\zhuguoping\Application Data\Microsoft\MSN Messenger\3662667825\Winks3<BR><BR>打开这个目录后发现很多个dat文件，先用一个用二进制的编辑器先打开看看。发现原来是一个多文件合并后产生的文件，又看了一会，原来就是一个CAB打包文件。<BR><BR>大家可以直接将Dat改名为Cab后用Cab打包软件打开看看。<BR>一般里面包含一个Swf和一个PNG以及一个Content.xml三个文件。<BR><BR>下面就来说说三个文件的作用。<BR>Swf这个文件我就不多说了，一个Flash的文件。<BR>PNG这个文件可以理解为Flash的缩略图文件。<BR>Content.Xml就是含个Cab的定义和配置文件。<BR><BR>格式如下：<BR><BR>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;<BR>&lt;package xmlns="<A href="http://messenger.msn.com/messengercontent/1.0">http://messenger.msn.com/messengercontent/1.0</A>" version="1.0" type="wink" xmlns:wink="<A href="http://messenger.msn.com/winks/1.0">http://messenger.msn.com/winks/1.0</A>" wink:version="1.0" wink:name="Toasting Glasses" partnerid="AG"&gt;<BR>&nbsp;&lt;item contentid="AGW3065297" contenttype="P" type="animation" mimetype="application/x-shockwave-flash" file="3065297f.swf" wink:sizex="640" wink:sizey="429" /&gt;<BR>&nbsp;&lt;item type="thumbnail" mimetype="image/png" file="3065297m.png" /&gt;<BR>&lt;/package&gt;<BR><BR>微软的开发还是很规范的，从Xml节点定义的名称就基本能猜出是什么意义了。<BR><BR><BR>先写到这吧，还有N多正事等在后面了，晚上再补充。有兴趣的朋友可以再仔细研究一下，用C#写个制作自定义的Winks应该不是太难。<BR><BR><img src ="http://www.cnblogs.com/mack/aggbug/156233.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42130/" target="_blank">[新闻]Google十年市值达1500亿美元 创造奇迹</a>]]></description></item><item><title>学习SPRING中的一个疑惑.请教一下各位</title><link>http://www.cnblogs.com/mack/archive/2005/03/05/113325.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Fri, 04 Mar 2005 16:45:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2005/03/05/113325.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/113325.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2005/03/05/113325.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/113325.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/113325.html</trackback:ping><description><![CDATA[<span class="BoldGreen">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt; 
<br/>&lt;objects&gt; 
<br/>&#160;&#160;&#160; &lt;description&gt;An&#160; example that demonstrates simple IoC features.&lt;/description&gt; 
<br/>&#160;&#160;&#160; &lt;object name=&quot;MyMovieLister&quot; type=&quot;Spring.Examples.MovieFinder.MovieLister, MovieFinder&quot;&gt; 
<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name=&quot;movieFinder&quot;&gt; 
<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;ref local=&quot;AnotherMovieFinder&quot; /&gt; 
<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/property&gt; 
<br/>&#160;&#160;&#160; &lt;/object&gt; 
<br/>&#160;&#160;&#160; &lt;object name=&quot;MyMovieFinder&quot; type=&quot;Spring.Examples.MovieFinder.SimpleMovieFinder, MovieFinder&quot;&gt;&lt;/object&gt; 
<br/>&#160;&#160;&#160; &lt;!-- 
<br/>&#160;&#160;&#160; An IMovieFinder implementation that uses a text file as it&#39;s movie source... 
<br/>&#160;&#160;&#160; --&gt; 
<br/>&#160;&#160;&#160; &lt;object name=&quot;<span style="COLOR: red">AnotherMovieFinder</span>&quot; type=&quot;Spring.Examples.MovieFinder.ColonDelimitedMovieFinder, MovieFinder&quot;&gt; 
<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;constructor-arg index=&quot;0&quot;&gt; 
<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;value&gt;movies.txt&lt;/value&gt; 
<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/constructor-arg&gt; 
<br/>&#160;&#160;&#160; &lt;/object&gt; 
<br/>&lt;/objects&gt; 
<br/>
<br/>这是Spring&#160;Quick中的程序.这里的Object AnotherMovieFinder定义一个构造函数.并将这个值设为movies.txt 
<br/>我的疑惑是.如果我需要在程序中把movies.txt改在test.txt的话.怎么实现呢? 
<br/>
<br/>下面还有一个类似的问题.前面是构造函数.以下是一个属性.同样我需要在程序中去修改Message 
<br/>&#160;&lt;object id=&quot;TheAction&quot; type=&quot;MSPlus.ClassLibrary.UpperAction, MSPlus.ClassLibrary&quot;&gt; 
<br/>&#160;&#160;&lt;property name=&quot;Message&quot;&gt; 
<br/>&#160;&#160;&#160;&lt;value&gt;MYFirst&lt;/value&gt; 
<br/>&#160;&#160;&lt;/property&gt; 
<br/>&#160;&lt;/object&gt; 
<br/>并且我这里默认是Singleton模式.如果在程序中去修改Message的值后.再次从ObjectFactoy中获取对象时这个Message是显示的是Xml中默认定义的MYFirst值呢还是我在程序中修改后的新值?(我试了一下他还是会显示Xml中定义的值,但如何在Singleton模式下在以后获取这个对像时显示修改后的Message值的?) 
<br/>
<br/>请大家请教一下... 
<br/></span><img src ="http://www.cnblogs.com/mack/aggbug/113325.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42129/" target="_blank">[新闻]GMail:回过头来支持IE6</a>]]></description></item><item><title>发布MSPlus DatePicker WebControl V2.0.1201 版本</title><link>http://www.cnblogs.com/mack/archive/2004/12/02/71793.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Wed, 01 Dec 2004 17:16:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2004/12/02/71793.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/71793.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2004/12/02/71793.html#Feedback</comments><slash:comments>44</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/71793.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/71793.html</trackback:ping><description><![CDATA[<P><IMG height="285" src="http://www.cnblogs.com/images/cnblogs_com/mack/DatePickerV2.0.gif" width="443" /><br/><br/>
</P>
<P><B>DatePickerV2.0 FreeVersion Build 1201 具有下功能:</B> 
</P>
<OL start="1">
<LI><FONT color="#ff6600">支持多国语言（中，英，法）</FONT> 
</LI>
<LI><FONT color="#ff6600">支持AutoPostBack模式</FONT> 
</LI>
<LI><FONT color="#ff6600">可自定义边框，背景色，字体色等样式</FONT> 
</LI>
<LI><FONT color="#ff6600">支持VS.NET2003中的设计时模式</FONT> 
</LI>
<LI><FONT color="#ff6600">具有DateChanged事件</FONT> 
</LI>
<LI><FONT color="#ff6600">支持更多浏览器环境（PC (WinXP): Internet Explorer 4/5/5.5/6, Netscape 4.78/7, Mozilla Firefox 0.8, Opera 7）</FONT> 
</LI>
<LI><FONT color="#ff6600">支持更多浏览器环境（Mac (OS9): Internet Explorer 5.1, Netscape 7.1）</FONT> 
</LI>
<LI><FONT color="#ff6600">支持更多浏览器环境（Mac (OSX): Internet Explorer 5.2, Netscape 7.1,Safari 125）</FONT> 
</LI>
</OL>
<P><STRONG><FONT color="#ff3366"><SPAN style="FONT-SIZE: 12pt"><STRONG><FONT color="#ff3366">下载免费的DatePicker V2.0.1201控件：</FONT></STRONG></SPAN></FONT></STRONG> 
</P>
<OL start="1">
<LI><FONT color="#ff0000" size="5" style="BACKGROUND-COLOR: #ffff00"><STRONG><A href="http://www.cnblogs.com/mack/articles/40428.html">点这里开始下载 DatePickerV2.0.1201&#160;</A></STRONG></FONT> 
</LI>
</OL>
<P><br/>随笔:好久没来这里了，大概有三个月没来了吧．这里的变化真大．但人气还是这么的旺．很感谢DUDU给我们提供这样学习交流的平台．最近公司的项目实在太紧，所以搞的我连上Blog的时间都没了，更不要说去更新这些控件了．上周来看了一下．发现上次发布的日期控件问题还真不少．所以这次来发布一个新的版本，新版本中对大家所提出的一些问题和意见都基本得到了解决或改进．有兴趣的朋友可以下载用用，如果有问题请给我留言（我不能保证每一条留言都回复，但每一次我都认真的看过）．新版的日期控件对于个人还是免费的．<br/>
</P><img src ="http://www.cnblogs.com/mack/aggbug/71793.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42128/" target="_blank">[新闻]Google十年大变样</a>]]></description></item><item><title>发布MSPlus ToolBar&amp;Menu WebControl V1.1.0910 版本</title><link>http://www.cnblogs.com/mack/archive/2004/09/11/42259.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Sat, 11 Sep 2004 14:14:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2004/09/11/42259.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/42259.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2004/09/11/42259.html#Feedback</comments><slash:comments>85</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/42259.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/42259.html</trackback:ping><description><![CDATA[<FONT color=#ff0000><STRONG>2004-9-18 ：菜单和工具条控件是支持跨越IFrame框架的，只是在上一版的示例包中没有加上这个功能的演示页，目前已更新过示例包有需要的朋友可以重新下载！</STRONG><BR><BR>2004-9-12 ：修改了有些版本的VS.NET2003中无法将控件直接拖到设计视图的问题．<BR></FONT><BR><IMG height=359 src="http://www.cnblogs.com/images/cnblogs_com/mack/ToolBarMenu0910.gif" width=570 border=0><BR><BR>
<P><B>MSPlus ToolBar &amp; Menu FreeVersion 1.1.0910 新增以下功能:</B></P>
<OL>
<LI><FONT color=#ff6600>Office2003的样式风格</FONT> 
<LI><FONT color=#ff6600>通过键盘快捷键触发菜单项</FONT> 
<LI><FONT color=#ff6600>菜单可以设定为右键菜单</FONT> 
<LI><FONT color=#ff6600>右键菜单可以于其它控件进行绑定</FONT> 
<LI><FONT color=#ff6600>菜单项支持ToolTip提示</FONT> 
<LI><FONT color=#ff0000><STRONG>菜单不会被下拉框给档住!</STRONG></FONT> 
<LI><FONT color=#ff6600>在免费版中去除了1.1.0830版里令大家&#8220;讨厌&#8221;的对话框限制（目前功能上无任何限制）</FONT></LI></OL>
<P><B>原有功能:</B> </P>
<OL>
<LI>无限层子菜单 
<LI>支持XML文件绑定 
<LI>支持XML流绑定 
<LI>动态新增、修改、禁用、隐藏、删除菜单项 
<LI>菜单点击后支持事件冒泡 
<LI>菜单项可以设为客户端调用Javascript脚本 
<LI>Vs.Net 2003的样式风格 
<LI>提升菜单工具条性能的开关（禁用ViewState） </LI></OL>
<P><B>常见问题的解决办法：</B></P>
<OL>
<LI>用VS.Net2003打开时提示目录出错（解决方法：修改解决方案文件中的IIS路径） </LI></OL>
<P><STRONG><FONT color=#ff3366>下载免费的ToolBar&amp;Menu控件：</FONT></STRONG></P>
<OL>
<LI><FONT style="BACKGROUND-COLOR: #ffff00" color=#ff0000 size=5><STRONG><A href="http://www.cnblogs.com/mack/articles/37894.aspx">点这里开始下载 ToolBar&amp;Menu V1.1.0910&nbsp;</A></STRONG></FONT></LI></OL>
<P><BR>MSPlus ToolBar&amp;Menu WebControl V1.1.0910版本开始所有的安程和示例程序都将告别以前那种简单的压缩包和粗糙的示例页面，迈出了正规化的第一步。<BR>安程包将统一使用MIS安装包的形式进行发布。<BR>控件的示例页面也将和一些正规控件公司的示例页面形式进行靠拢。<BR>对于以前已发布的控件，我近期也将会重新整理和发布MIS包。<BR><FONT color=#ff6600>MSPlus WebControls 对于个人用户（非商业目地）来说将一如既往的免费、无限制的使用。</FONT><BR><BR>如果你在使用中发现问题请及时与我联系，如对控件的功能有需求的话也可来信告我！<BR>MSPlus要走的路还很长，与目前出名的控件公司比起来差距是很大的。<BR>一个人的能力必竟是有限的，如果在控件方面有兴趣合作的朋友或公司可来信或MSN与我联系，众人拾柴火焰高！同时大家对MSPlus在如何发展的问题上有什么好的建议请告诉我。<BR><STRONG><FONT color=#ff3300>(MSN) msplus@gmail.com</FONT></STRONG></P><img src ="http://www.cnblogs.com/mack/aggbug/42259.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42127/" target="_blank">[新闻]谷歌十年创新路</a>]]></description></item><item><title>MSPlus DatePicker WebControl FreeVersion 1.1.0906 发布啦!</title><link>http://www.cnblogs.com/mack/archive/2004/09/06/40459.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Mon, 06 Sep 2004 15:04:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2004/09/06/40459.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/40459.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2004/09/06/40459.html#Feedback</comments><slash:comments>39</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/40459.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/40459.html</trackback:ping><description><![CDATA[<FONT color=#ff0000>2004-9-12 ：修改了有些版本的VS.NET2003中无法将控件直接拖到设计视图的问题．<BR>2004-9-12： 修改了多个日期控件共存时,JS报错的问题<BR><BR><IMG height=224 src="http://www.cnblogs.com/images/cnblogs_com/mack/DatePicker0910.gif" width=228 border=0><BR><BR>2004-9-10：根据网友提出的建意增加了可以清空当前选中日期值的功能．<BR>
<HR id=null>
<BR>2004-9-7：解决了JS脚本在UTF-8模式下出错的问题．<BR>
<HR id=null>
<BR>警急通知：昨晚竟然上传了一个有问题的演示包上来！<IMG src="http://www.cnblogs.com/Emoticons/red_smile.gif">&nbsp;真是对不起大家．同时也感谢ideal网友提醒我．<BR><BR>出错的地方如下（在三个ASPX文件的第一行）：<BR></FONT>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><FONT color=#ff0000><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">%@&nbsp;Register&nbsp;</SPAN><SPAN style="COLOR: #ff0000">TagPrefix</SPAN><SPAN style="COLOR: #0000ff">="msp"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Namespace</SPAN><SPAN style="COLOR: #0000ff">="MSPlus.Web.UI.WebControls"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Assembly</SPAN><SPAN style="COLOR: #0000ff">="DatePicker"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;%</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></FONT></DIV></DIV><FONT color=#ff0000>将控件注册的Assembly改为以下<BR></FONT>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><FONT color=#ff0000><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">%@&nbsp;Register&nbsp;</SPAN><SPAN style="COLOR: #ff0000">TagPrefix</SPAN><SPAN style="COLOR: #0000ff">="msp"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Namespace</SPAN><SPAN style="COLOR: #0000ff">="MSPlus.Web.UI.WebControls"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Assembly</SPAN><SPAN style="COLOR: #0000ff">="MSPlus.DatePicker"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;%</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></FONT></DIV></DIV><BR><FONT color=#ff0000>2004-9-6 23:00 - 2004-9-7 16:30 其间下载的DEMO包都有这个问题，目前我已将修改过的安装包上传了．<BR>再次向所有以下载的用户表示歉意，对于以后的DEMO包上传我一定会认真检查！<BR><BR></FONT>
<HR id=null>
<BR><IMG height=396 src="http://www.cnblogs.com/images/cnblogs_com/mack/DatePicker.gif" width=503 border=0><BR><BR>支持VS.NET设计时，可自定义样式（边框背景等）<BR><BR>用户可自行设定日期显示和取值的格式（例如以下）<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">DatePicker.Format&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;&#8220;yyyy</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">mm</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">dd&#8220;;&nbsp;DatePicker.Format&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;&#8220;mm</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">dd</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">yyyy&#8220;;</SPAN></DIV></DIV><BR>支持AutoPostBack模式，当选择完日期后自动返回服务器端<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">DatePicker.AutoPostBack&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">true</SPAN><SPAN style="COLOR: #000000">;</SPAN></DIV></DIV><BR>日期输入框可设置是否允许用户直接输入日期值<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">DatePicker.InputDisable&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">;</SPAN></DIV></DIV><BR>当返回的日期值与前一次不同时，将会引发DateChange事件<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;InitializeComponent()<BR><IMG id=Codehighlighter1_35_185_Open_Image onclick="this.style.display='none'; Codehighlighter1_35_185_Open_Text.style.display='none'; Codehighlighter1_35_185_Closed_Image.style.display='inline'; Codehighlighter1_35_185_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_35_185_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_35_185_Closed_Text.style.display='none'; Codehighlighter1_35_185_Open_Image.style.display='inline'; Codehighlighter1_35_185_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_35_185_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_35_185_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.DatePicker1.DateChanged&nbsp;</SPAN><SPAN style="COLOR: #000000">+=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;System.EventHandler(</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.DatePicker1_DateChanged);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.Load&nbsp;</SPAN><SPAN style="COLOR: #000000">+=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;System.EventHandler(</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.Page_Load);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">#endregion</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;DatePicker1_DateChanged(</SPAN><SPAN style="COLOR: #0000ff">object</SPAN><SPAN style="COLOR: #000000">&nbsp;sender,&nbsp;System.EventArgs&nbsp;e)<BR><IMG id=Codehighlighter1_271_322_Open_Image onclick="this.style.display='none'; Codehighlighter1_271_322_Open_Text.style.display='none'; Codehighlighter1_271_322_Closed_Image.style.display='inline'; Codehighlighter1_271_322_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_271_322_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_271_322_Closed_Text.style.display='none'; Codehighlighter1_271_322_Open_Image.style.display='inline'; Codehighlighter1_271_322_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_271_322_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_271_322_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;Label1.Text&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">DatePicker.DateChanged&nbsp;事件被触发了！</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN></DIV></DIV><BR><A href="http://www.cnblogs.com/mack/articles/40428.aspx"><FONT style="BACKGROUND-COLOR: #ffff33" color=#ff0000 size=4><STRONG>点这里下载 MSPlus DatePicker WebControl＆Demo FreeVision 1.1.0906</STRONG></FONT></A><BR><BR>微软WebControl中本身就有一个日期控件功能十分强大，但那个控件太过服务器端了，每次选择日期时总要不停的DoPostBack．这样一来会操成服务器端的性能下降，频繁的DoPostBack操作起来也不太方便．这个小控件正好能弥补微软日期控件的不足．<BR>------------------------------------------------------<BR>在开发中也遇到一个奇怪的问题，如果Web.Config中设置，如果<SPAN style="COLOR: #800000">globalization<FONT color=#000000>如果这个项为utf-8时Js文件会报错，我想可能是因为Js文件本身是Gb2312字符格式的问题．</FONT></SPAN><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">&lt;!--</SPAN><SPAN style="COLOR: #008000">&nbsp;&nbsp;全球化&nbsp;此节设置应用程序的全球化设置。</SPAN><SPAN style="COLOR: #008000">--&gt;</SPAN><SPAN style="COLOR: #000000"><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">globalization&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #ff0000">requestEncoding</SPAN><SPAN style="COLOR: #0000ff">="utf-8"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;responseEncoding</SPAN><SPAN style="COLOR: #0000ff">="utf-8"</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN></DIV></DIV><BR>但如果将<SPAN style="COLOR: #800000">globalization<FONT color=#000000>设置为gb2312模式就没有问题了<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">&lt;!--</SPAN><SPAN style="COLOR: #008000">&nbsp;&nbsp;全球化&nbsp;此节设置应用程序的全球化设置。&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">--&gt;</SPAN><SPAN style="COLOR: #000000"><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">globalization&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #ff0000">requestEncoding</SPAN><SPAN style="COLOR: #0000ff">="gb2312"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;responseEncoding</SPAN><SPAN style="COLOR: #0000ff">="gb2312"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN></DIV></DIV><BR>上周四买了两只小乌龟（一只绿的一只黑的）双休日的时间都花在逗小乌龟玩上了．呵呵．最近天也快凉了，正在考虑买加热棒还是让小乌龟自然冬眠，但那两只乌龟实在太小，我怕他们冬眠中会死掉...咳...<BR><BR>顺便贴张我那两只小乌龟的照片．嘿嘿．<BR><A href="http://www.cnblogs.com/mack/gallery/image/4478.aspx"><STRONG>http://www.cnblogs.com/mack/gallery/image/4478.aspx</STRONG></A></FONT></SPAN><img src ="http://www.cnblogs.com/mack/aggbug/40459.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42126/" target="_blank">[新闻]十年回顾：Google的互联网经济</a>]]></description></item><item><title>关于MSPlus控件下载后用VS.NET打开提示目录不对的解决方法</title><link>http://www.cnblogs.com/mack/archive/2004/09/02/38764.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Thu, 02 Sep 2004 01:35:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2004/09/02/38764.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/38764.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2004/09/02/38764.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/38764.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/38764.html</trackback:ping><description><![CDATA[最近有些网友来问我为什么下载MSPLUS控件后,打开.Sln文件后，VS.NET提示目录不对的问题怎么解决?<BR><BR>对于这个问题解决方法如下：<BR><BR>下载MSPLUS控件后,里面有一个 SLN 为扩展名的文件(也就是解决方案文件)．<BR>用记事本打开这个文件你会在最上面的部份看见这样一段内容:<BR><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">Microsoft&nbsp;Visual&nbsp;Studio&nbsp;Solution&nbsp;File,&nbsp;Format&nbsp;Version&nbsp;8.00<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}")&nbsp;=&nbsp;"ToolBarAndMenuDemo",&nbsp;"http://localhost:2000/ToolBarAndMenuDemo/ToolBarAndMenuDemo.csproj",&nbsp;"{7CAA01F4-91FB-425C-9317-F75EE0956623}"<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;ProjectSection(ProjectDependencies)&nbsp;=&nbsp;postProject<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;EndProjectSection<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>EndProject</SPAN></DIV></DIV><BR>所需要改动的是以下这句<BR>"<A href="http://localhost:2000/ToolBarAndMenuDemo/ToolBarAndMenuDemo.csproj">http://localhost:2000/ToolBarAndMenuDemo/ToolBarAndMenuDemo.csproj</A>"<BR><BR>因为每个人IIS设置的不同，所以需要按你机器上的环境来配置这个ＵＲＬ地址.<BR><BR>例如：<BR>如果你将下载的文件解压缩后放在 C:\Inetpub\wwwroot\ToolBarAndMenuDemo这个目录下．<BR>打开IIS你会在默认Web站点下看见ToolBarAndMenuDemo这个虚拟目录．<BR>右键点击这个目录，进入属性设置对话框．在应用程序设置下面的应用程序名，点击右边的创建按钮将其设为应用目录即可．<BR>设置完成后将SLN文件中的以下这句<BR>"<A href="http://localhost:2000/ToolBarAndMenuDemo/ToolBarAndMenuDemo.csproj">http://localhost:2000/ToolBarAndMenuDemo/ToolBarAndMenuDemo.csproj</A>"<BR>改为<BR>"<A href="http://localhost/ToolBarAndMenuDemo/ToolBarAndMenuDemo.csproj">http://localhost/ToolBarAndMenuDemo/ToolBarAndMenuDemo.csproj</A>"<BR>修改完后保存，然后你在用VS.NET打开SLN文件就行了．<BR><BR>如果你在使用中还有不明白的地方．也可以通过MSN与我交流．<STRONG><A href="mailto:msplus@gmail.com">msplus@gmail.com</A></STRONG>&nbsp;<STRONG>(MSN)<BR></STRONG><FONT style="BACKGROUND-COLOR: #ff0000" color=#ffff00><STRONG>这里再提配一下：在IIS中一定要将虚拟目录设置为应用目录！<BR></STRONG><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000><BR>对于以后控件的发布我也会注意这个问题，最近几天我也会将所有的控件打成MIS安装包的形式重新发布！<BR><BR>大家如果有更好解决这个问题的方法也告诉我一下吧．呵呵<BR><BR></FONT></FONT><img src ="http://www.cnblogs.com/mack/aggbug/38764.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42123/" target="_blank">[新闻]Google 10周年大事记</a>]]></description></item><item><title>MSPlus ToolBar&amp;Menu WebControl FreeVersion 1.1.0830 发布拉</title><link>http://www.cnblogs.com/mack/archive/2004/08/30/37895.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Mon, 30 Aug 2004 15:18:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2004/08/30/37895.html</guid><wfw:comment>http://www.cnblogs.com/mack/comments/37895.html</wfw:comment><comments>http://www.cnblogs.com/mack/archive/2004/08/30/37895.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.cnblogs.com/mack/comments/commentRss/37895.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mack/services/trackbacks/37895.html</trackback:ping><description><![CDATA[<STRONG>ToolBar &amp; Menu 支持换皮,以下是VS.NET风格的运行时样式.同时也时支持VS.NET设计时.<BR><BR><FONT color=#ff0000>菜单层次支持无限层.呵呵</FONT><BR></STRONG><BR><IMG height=293 src="http://www.cnblogs.com/images/cnblogs_com/mack/MenuToolBar.gif" width=464 border=0><BR><BR><STRONG>支持XML数据源绑定,和直接在ASPX里增加子控件两种方法</STRONG><BR><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:toolbar&nbsp;</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="ToolBar1"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;runat</SPAN><SPAN style="COLOR: #0000ff">="server"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Width</SPAN><SPAN style="COLOR: #0000ff">="450px"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:MenuItem&nbsp;</SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="MI1"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Label</SPAN><SPAN style="COLOR: #0000ff">=""</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIcon</SPAN><SPAN style="COLOR: #0000ff">="icon_listMembers"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIconOver</SPAN><SPAN style="COLOR: #0000ff">="icon_listMembers_over"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:MenuItem&nbsp;</SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="MI11"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Label</SPAN><SPAN style="COLOR: #0000ff">="新建项目"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIcon</SPAN><SPAN style="COLOR: #0000ff">="icon_copy"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIconOver</SPAN><SPAN style="COLOR: #0000ff">="icon_copy_over"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">msp:MenuItem</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:MenuItem</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:MenuItem&nbsp;</SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="MI2"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Label</SPAN><SPAN style="COLOR: #0000ff">=""</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIcon</SPAN><SPAN style="COLOR: #0000ff">="icon_addNewItem"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIconOver</SPAN><SPAN style="COLOR: #0000ff">="icon_addNewItem_over"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:MenuItem&nbsp;</SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="MI21"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Label</SPAN><SPAN style="COLOR: #0000ff">="添加新项"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIcon</SPAN><SPAN style="COLOR: #0000ff">="icon_copy"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIconOver</SPAN><SPAN style="COLOR: #0000ff">="icon_copy_over"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">msp:MenuItem</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:MenuItem&nbsp;</SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="MI28"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Label</SPAN><SPAN style="COLOR: #0000ff">="-"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">msp:MenuItem</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:MenuItem&nbsp;</SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="MI23"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Label</SPAN><SPAN style="COLOR: #0000ff">="添加&nbsp;Web&nbsp;功能"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:MenuItem&nbsp;</SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="MI231"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Label</SPAN><SPAN style="COLOR: #0000ff">="添加&nbsp;Web&nbsp;窗体"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIcon</SPAN><SPAN style="COLOR: #0000ff">="icon_parameterInfo"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIconOver</SPAN><SPAN style="COLOR: #0000ff">="icon_parameterInfo_over"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">msp:MenuItem</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:MenuItem&nbsp;</SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="MI232"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Label</SPAN><SPAN style="COLOR: #0000ff">="添加&nbsp;Web&nbsp;用户控件"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIcon</SPAN><SPAN style="COLOR: #0000ff">="icon_project"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIconOver</SPAN><SPAN style="COLOR: #0000ff">="icon_project_over"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">msp:MenuItem</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">msp:MenuItem</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">msp:MenuItem&nbsp;</SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="MI26"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;Label</SPAN><SPAN style="COLOR: #0000ff">="添加组件"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIcon</SPAN><SPAN style="COLOR: #0000ff">="icon_parameterInfo"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;LeftIconOver</SPAN><SPAN style="COLOR: #0000ff">="icon_parameterInfo_over"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">msp:MenuItem</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><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">msp:MenuItem</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">msp:toolbar</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV></DIV><BR><STRONG>Xml绑定:</STRONG><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;Page_Load(</SPAN><SPAN style="COLOR: #0000ff">object</SPAN><SPAN style="COLOR: #000000">&nbsp;sender,&nbsp;System.EventArgs&nbsp;e)<BR><IMG id=Codehighlighter1_58_173_Open_Image onclick="this.style.display='none'; Codehighlighter1_58_173_Open_Text.style.display='none'; Codehighlighter1_58_173_Closed_Image.style.display='inline'; Codehighlighter1_58_173_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_58_173_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_58_173_Closed_Text.style.display='none'; Codehighlighter1_58_173_Open_Image.style.display='inline'; Codehighlighter1_58_173_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_58_173_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_58_173_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #000000">!</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.IsPostBack)<BR><IMG id=Codehighlighter1_83_171_Open_Image onclick="this.style.display='none'; Codehighlighter1_83_171_Open_Text.style.display='none'; Codehighlighter1_83_171_Closed_Image.style.display='inline'; Codehighlighter1_83_171_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_83_171_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_83_171_Closed_Text.style.display='none'; Codehighlighter1_83_171_Open_Image.style.display='inline'; Codehighlighter1_83_171_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_83_171_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_83_171_Open_Text><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;ToolBar1.DataSource&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;Server.MapPath(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">ToolBarXmlData.xml</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;ToolBar1.DataBind();<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN></DIV></DIV><BR><STRONG>支持菜单项被点击后的事件冒泡<BR>同时也可以为每个菜单项增加点击后执行的客户端转跳的URL和JS.<BR></STRONG><BR><IMG height=222 src="http://www.cnblogs.com/images/cnblogs_com/mack/ToolBarClickEvent.gif" width=627 border=0><BR><BR><BR><STRONG>支持动态的增加,删除,隐藏,禁用菜单项.<BR></STRONG><BR><STRONG><FONT style="BACKGROUND-COLOR: #ffff33" color=#ff0000 size=4><A href="http://www.cnblogs.com/mack/articles/37894.aspx">更多功能请下载控件使用DEMO，点此下载 MSPlus ToolBar&amp;Menu WebControls</A><BR></FONT></STRONG><BR>说到ASP.NET菜单控件，大家一定会想起国外专作菜单控件的ASPNEMENU公司，当我第一次看见ASPNETMENU时，当时还正在学习.NET，正好有个项目需要菜单控件，但那东西竟然要买$299美金，那时我就在想为什么我们中国人就没人去想到作一个呢，并且超越他比他作的更好呢？！<BR><BR>从那以后我就开始了控件开发，这次发布的ToolBar和Menu控件，虽然样式上没有ASPNETMENU丰富（目前只提供了一个Vs.Net风格的），但功能和性能上我个人认为应比他那个要强一些吧（起码ASPNETENU只支持XML绑定一种方式，他状态保持后的VIEWSTATE没处理好，导致页面上的ViewState值爆多一但子菜单一多性能上有影响）．<BR><BR><FONT color=#ff0000>还有一点就是MSPlus控件对国人来说个人版将是免费的！</FONT><BR><BR>MSPlus控件目前功能上可能还不是很完美，如果大家有好的提意或想法可以给我留言，我希望和大家一起进步．<BR><BR>上周在忙着帮一个朋友作一个项目，所以新控件的发布也停了一周．下次将发布TABControl．<img src ="http://www.cnblogs.com/mack/aggbug/37895.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42122/" target="_blank">[新闻]Google上下二十年</a>]]></description></item><item><title>［原创］复合控件中如何将客户端的处理结果通知服务器端的解决办法</title><link>http://www.cnblogs.com/mack/archive/2004/08/23/35922.html</link><dc:creator>Mack.Z</dc:creator><author>Mack.Z</author><pubDate>Mon, 23 Aug 2004 06:39:00 GMT</pubDate><guid>http://www.cnblogs.com/mack/archive/2004/08/23/35922.html</guid><wfw:comment>http://ww