<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[TOMMYHU's blog]]></title> 
<link>http://www.tommyhu.cn/index.php</link> 
<description><![CDATA[与您分享最精彩的互联网资源 ~ 奇趣网络应用 & 新奇实用软件下载]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[TOMMYHU's blog]]></copyright>
<item>
<link>http://www.tommyhu.cn/csharp-teach/</link>
<title><![CDATA[C#程序设计入门与实例视频教程　]]></title> 
<author>tommyhu &lt;258546962@qq.com&gt;</author>
<category><![CDATA[ASP.NET CODE(代码片段)]]></category>
<pubDate>Mon, 23 Aug 2010 22:57:11 +0000</pubDate> 
<guid>http://www.tommyhu.cn/csharp-teach/</guid> 
<description>
<![CDATA[ 
	初学者在学习程序的过程中很重要的一个学习方法就是读源代码，但如果对语言本身的了解不够，在阅读源码的过程中会遇到很大的困难。磨刀不误砍柴功，制作《C#语言参考视频》教程的目的在于帮助初学者打下坚实的语言基础，降低程序学习的难度。<br/><br/>　　本教程由广西机电职业技术学院的陈广老师录制，供学生课后自学用，教程以手把手的方式，通过简单实例入手，层层深入，对C#语言进行了详细而全面地讲解。<br/>本教程面向的对象为：<br/>1、看过一些初级C#教程，对基本语法，三大结构理解没有困难的人员。<br/>2、学习过其它语言，想转入到C#进行学习的人员<br/><u><span style="color: #0000FF;"><span style="font-size: 18px;">http://www.enet.com.cn/eschool/video/c/</span></span></u><br/><br/><br/>Tags - <a href="http://www.tommyhu.cn/tags/c%2523%25E7%25A8%258B%25E5%25BA%258F%25E8%25AE%25BE%25E8%25AE%25A1%25E5%2585%25A5%25E9%2597%25A8%25E4%25B8%258E%25E5%25AE%259E%25E4%25BE%258B%25E8%25A7%2586%25E9%25A2%2591%25E6%2595%2599%25E7%25A8%258B%25E3%2580%2580c%2523%25E6%2595%2599%25E7%25A8%258B/" rel="tag">c#程序设计入门与实例视频教程　c#教程</a> , <a href="http://www.tommyhu.cn/tags/csharp%25E8%25A7%2586%25E9%25A2%2591%25E6%2595%2599%25E7%25A8%258B/" rel="tag">csharp视频教程</a> , <a href="http://www.tommyhu.cn/tags/c%2523/" rel="tag">c#</a> , <a href="http://www.tommyhu.cn/tags/c%2523%25E7%25BB%258F%25E5%2585%25B8%25E5%2585%25A5%25E9%2597%25A8%25E8%25A7%2586%25E9%25A2%2591%25E6%2595%2599%25E7%25A8%258B/" rel="tag">c#经典入门视频教程</a>
]]>
</description>
</item><item>
<link>http://www.tommyhu.cn/net-cookies-class/</link>
<title><![CDATA[c# asp.net cookies class（cookies操作类）]]></title> 
<author>tommyhu &lt;258546962@qq.com&gt;</author>
<category><![CDATA[ASP.NET CODE(代码片段)]]></category>
<pubDate>Thu, 19 Aug 2010 22:29:57 +0000</pubDate> 
<guid>http://www.tommyhu.cn/net-cookies-class/</guid> 
<description>
<![CDATA[ 
	c# asp.net cookies class,cookies操作类。 <br/><textarea name="code" class="CSS" rows="15" cols="100">
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Data; 
using System.Configuration; 

namespace cookiescontrol
&#123; 
/// <summary> 
/// Cookie操作类 
/// </summary> 
public class Cookie 
&#123; 
/// <summary> 
/// 保存一个Cookie 
/// </summary> 
/// <param name="CookieName">Cookie名称</param> 
/// <param name="CookieValue">Cookie值</param> 
/// <param name="CookieTime">Cookie过期时间(小时),0为关闭页面失效</param> 
public static void SaveCookie(string CookieName, string CookieValue, double CookieTime) 
&#123; 
HttpCookie myCookie = new HttpCookie(CookieName); 
DateTime now = DateTime.Now; 
myCookie.Value = CookieValue; 

if (CookieTime != 0) 
&#123; 
//有两种方法，第一方法设置Cookie时间的话，关闭浏览器不会自动清除Cookie 
//第二方法不设置Cookie时间的话，关闭浏览器会自动清除Cookie ,但是有效期 
//多久还未得到证实。 
myCookie.Expires = now.AddDays(CookieTime); 
if (HttpContext.Current.Response.Cookies[CookieName] != null) 
HttpContext.Current.Response.Cookies.Remove(CookieName); 

HttpContext.Current.Response.Cookies.Add(myCookie); 
&#125; 
else 
&#123; 
if (HttpContext.Current.Response.Cookies[CookieName] != null) 
HttpContext.Current.Response.Cookies.Remove(CookieName); 

HttpContext.Current.Response.Cookies.Add(myCookie); 
&#125; 
&#125; 
/// <summary> 
/// 取得CookieValue 
/// </summary> 
/// <param name="CookieName">Cookie名称</param> 
/// <returns>Cookie的值</returns> 
public static string GetCookie(string CookieName) 
&#123; 
HttpCookie myCookie = new HttpCookie(CookieName); 
myCookie = HttpContext.Current.Request.Cookies[CookieName]; 

if (myCookie != null) 
return myCookie.Value; 
else 
return null; 
&#125; 
/// <summary> 
/// 清除CookieValue 
/// </summary> 
/// <param name="CookieName">Cookie名称</param> 
public static void ClearCookie(string CookieName) 
&#123; 
HttpCookie myCookie = new HttpCookie(CookieName); 
DateTime now = DateTime.Now; 

myCookie.Expires = now.AddYears(-2); 

HttpContext.Current.Response.Cookies.Add(myCookie); 
&#125; 
&#125; 
&#125;
</textarea><br/>Tags - <a href="http://www.tommyhu.cn/tags/netcookies%25E6%2593%258D%25E4%25BD%259C%25E7%25B1%25BB/" rel="tag">netcookies操作类</a> , <a href="http://www.tommyhu.cn/tags/cookies%25E7%25B1%25BB/" rel="tag">cookies类</a> , <a href="http://www.tommyhu.cn/tags/%25E5%25B0%258F%25E7%2594%259C%25E9%25A5%25BC%25E6%2593%258D%25E4%25BD%259C%25E7%25B1%25BB/" rel="tag">小甜饼操作类</a> , <a href="http://www.tommyhu.cn/tags/cookieslei/" rel="tag">cookieslei</a> , <a href="http://www.tommyhu.cn/tags/asp.net/" rel="tag">asp.net</a>
]]>
</description>
</item><item>
<link>http://www.tommyhu.cn/csharp-filter-html/</link>
<title><![CDATA[C# 正则过滤html,js,css代码]]></title> 
<author>tommyhu &lt;258546962@qq.com&gt;</author>
<category><![CDATA[ASP.NET CODE(代码片段)]]></category>
<pubDate>Fri, 06 Aug 2010 03:53:54 +0000</pubDate> 
<guid>http://www.tommyhu.cn/csharp-filter-html/</guid> 
<description>
<![CDATA[ 
	C# 正则过滤html,js,css代码<div class="code"><br/>public static string InputText(string text)//过滤html,js,css代码<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text = text.Trim();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (string.IsNullOrEmpty(text))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return string.Empty;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text = Regex.Replace(text, &quot;&#91;&#92;&#92;s&#93;&#123;2,&#125;&quot;, &quot; &quot;); //两个或多个空格替换为一个<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text = Regex.Replace(text, &quot;(&lt;&#91;b&#124;B&#93;&#91;r&#124;R&#93;/*&gt;)+&#124;(&lt;&#91;p&#124;P&#93;(.&#124;&#92;&#92;n)*?&gt;)&quot;, &quot;&#92;n&quot;); //&lt;br&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text = Regex.Replace(text, &quot;(&#92;&#92;s*&amp;&#91;n&#124;N&#93;&#91;b&#124;B&#93;&#91;s&#124;S&#93;&#91;p&#124;P&#93;;&#92;&#92;s*)+&quot;, &quot; &quot;); //&amp;nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text = Regex.Replace(text, &quot;&lt;(.&#124;&#92;&#92;n)*?&gt;&quot;, string.Empty); //其它任何标记<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text = text.Replace(&quot;&#039;&quot;, &quot;&#039;&#039;&quot;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return text;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125; <br/></div><br/><br/>C# 正则过滤html,js,css代码<br/><hr/><br/><span style="font-size: 18px;"><span style="color: #FF1493;">另外大家也可以看看</span></span><br/><span style="color: #FF0000;"><span style="font-size: 18px;">asp正则过滤html,js,css代码</span></span><br/><div class="code"><br/>&lt;%<br/>Option Explicit<br/><br/>Function RemoveHTML(strHTML) &#039;过滤HTML代码的函数包括过滤CSS和JS <br/><br/>StrHtml = Replace(StrHtml,vbCrLf,&quot;&quot;) <br/>StrHtml = Replace(StrHtml,Chr(13)&amp;Chr(10),&quot;&quot;) <br/>StrHtml = Replace(StrHtml,Chr(13),&quot;&quot;) <br/>StrHtml = Replace(StrHtml,Chr(10),&quot;&quot;) <br/>StrHtml = Replace(StrHtml,&quot; &quot;,&quot;&quot;) <br/>StrHtml = Replace(StrHtml,&quot; &quot;,&quot;&quot;) <br/><br/>Dim objRegExp, Match, Matches <br/>Set objRegExp = New Regexp <br/><br/>objRegExp.IgnoreCase = True <br/>objRegExp.Global = True <br/><br/>&#039;取闭合的&lt;&gt; <br/>objRegExp.Pattern = &quot;&lt;style(.+?)/style&gt;&quot; <br/>&#039;进行匹配 <br/>Set Matches = objRegExp.Execute(strHTML) <br/><br/>&#039; 遍历匹配集合，并替换掉匹配的项目 <br/>For Each Match in Matches <br/>strHtml=Replace(strHTML,Match.Value,&quot;&quot;) <br/>Next <br/><br/>&#039;取闭合的&lt;&gt; <br/>objRegExp.Pattern = &quot;&lt;script(.+?)/script&gt;&quot; <br/>&#039;进行匹配 <br/>Set Matches = objRegExp.Execute(strHTML) <br/><br/>&#039; 遍历匹配集合，并替换掉匹配的项目 <br/>For Each Match in Matches <br/>strHtml=Replace(strHTML,Match.Value,&quot;&quot;) <br/>Next <br/><br/>&#039;取闭合的&lt;&gt; <br/>objRegExp.Pattern = &quot;javascript:(.+?)&gt;&quot; <br/>&#039;进行匹配 <br/>Set Matches = objRegExp.Execute(strHTML) <br/><br/>&#039; 遍历匹配集合，并替换掉匹配的项目 <br/>For Each Match in Matches <br/>strHtml=Replace(strHTML,Match.Value,&quot;&quot;) <br/>Next <br/><br/>&#039;取闭合的&lt;&gt; <br/>objRegExp.Pattern = &quot;&lt;.+?&gt;&quot; <br/>&#039;进行匹配 <br/>Set Matches = objRegExp.Execute(strHTML) <br/><br/>&#039; 遍历匹配集合，并替换掉匹配的项目 <br/>For Each Match in Matches <br/>strHtml=Replace(strHTML,Match.Value,&quot;&quot;) <br/>Next <br/><br/>RemoveHTML=strHTML <br/>Set objRegExp = Nothing <br/>End Function<br/><br/>%&gt;<br/><br/>&lt;form method=&quot;post&quot; id=form1 name=form1&gt;<br/>&lt;b&gt;Enter an HTML String:&lt;/b&gt;&lt;br&gt;<br/>&lt;textarea name=&quot;txtHTML&quot; cols=&quot;50&quot; rows=&quot;8&quot; wrap=&quot;virtual&quot;&gt;&lt;%=Request(&quot;txtHTML&quot;)%&gt;&lt;/textarea&gt;<br/>&lt;p&gt;<br/>&lt;input type=&quot;submit&quot; value=&quot;Strip HTML Tags!&quot; id=submit1 name=submit1&gt;<br/>&lt;/form&gt;<br/><br/>&lt;% if Len(Request(&quot;txtHTML&quot;)) &gt; 0 then %&gt;<br/>&lt;p&gt;&lt;hr&gt;&lt;p&gt;<br/>&lt;b&gt;&lt;u&gt;View of string &lt;i&gt;with no&lt;/i&gt; HTML stripping:&lt;/u&gt;&lt;/b&gt;&lt;br&gt;<br/>&lt;xmp&gt;<br/>&lt;%=Request(&quot;txtHTML&quot;)%&gt;<br/>&lt;/xmp&gt;&lt;p&gt;<br/>&lt;b&gt;&lt;u&gt;View of string &lt;i&gt;with&lt;/i&gt; HTML stripping:&lt;/u&gt;&lt;/b&gt;&lt;br&gt;<br/>&lt;pre&gt;<br/>&lt;%=RemoveHTML(Request(&quot;txtHTML&quot;))%&gt;<br/>&lt;/pre&gt;<br/>&lt;% End If %&gt; <br/></div><br/><span style="color: #0000FF;"><span style="font-size: 14px;">另外值得注意的是，如果 发布帖子的人 发布的本就含有代码，将会是过滤更加苦难，可以做的是，例如<br/>xx程序员在论坛中可视化编辑器的 视图状态 发帖</span></span><br/><div class="code">&lt;/xmp&gt;&lt;p&gt;<br/>&lt;b&gt;&lt;u&gt;View of string &lt;i&gt;with&lt;/i&gt; HTML stripping:&lt;/u&gt;&lt;/b&gt;&lt;br&gt;<br/>&lt;pre&gt;<br/>&lt;%=RemoveHTML(Request(&quot;txtHTML&quot;))%&gt;</div>是什么意思！<br/>这样也会被过滤，具体解决方法有待商榷！<br/><br/>Tags - <a href="http://www.tommyhu.cn/tags/c%2523%25E6%25AD%25A3%25E5%2588%2599%25E8%25BF%2587%25E6%25BB%25A4html-js-css%25E4%25BB%25A3%25E7%25A0%2581/" rel="tag">c#正则过滤html-js-css代码</a> , <a href="http://www.tommyhu.cn/tags/c%2523/" rel="tag">c#</a> , <a href="http://www.tommyhu.cn/tags/csharp%25E8%25BF%2587%25E6%25BB%25A4html/" rel="tag">csharp过滤html</a> , <a href="http://www.tommyhu.cn/tags/c%2523%25E8%25BF%2587%25E6%25BB%25A4%25E4%25BB%25A3%25E7%25A0%2581%25E6%25AD%25A3%25E5%2588%2599%25E8%25A1%25A8%25E8%25BE%25BE%25E5%25BC%258F%25E5%25BA%2594%25E7%2594%25A8/" rel="tag">c#过滤代码正则表达式应用</a> , <a href="http://www.tommyhu.cn/tags/asp%25E5%2587%25BD%25E6%2595%25B0%25E8%25BF%2587%25E6%25BB%25A4html%252Cjs%252Ccss%25E4%25BB%25A3%25E7%25A0%2581/" rel="tag">asp函数过滤html,js,css代码</a>
]]>
</description>
</item><item>
<link>http://www.tommyhu.cn/Visual-Studio-style/</link>
<title><![CDATA[保护视力的Visual Studio皮肤 ]]></title> 
<author>tommyhu &lt;258546962@qq.com&gt;</author>
<category><![CDATA[ASP.NET CODE(代码片段)]]></category>
<pubDate>Mon, 05 Jul 2010 00:06:00 +0000</pubDate> 
<guid>http://www.tommyhu.cn/Visual-Studio-style/</guid> 
<description>
<![CDATA[ 
	唉，天天在电脑边敲键盘，而且面对着VS里里的小字，我眼睛疼。。。。。不知道你是否有同感。今天终于狠心去试着找一个保护眼睛的皮肤，呵呵还真找到了。<br/>你还别说，小日本的程序员真牛逼，竟然对保护视力很有研究。<br/>皮肤下载地址:<a href="http://studiostyles.info/schemes/eye-health" target="_blank">http://studiostyles.info/schemes/eye-health</a><br/><br/>我试着上网搜了下哪些颜色对眼睛保护好，黑色,蓝色，米黄色，红色。<br/><br/>看看我找到的这个保护视力的VS皮肤，适用于VS2005/8/10。<br/><a href="http://studiostyles.info/schemes/eye-health" target="_blank"><img src="http://www.tommyhu.cn/attachment.php?fid=1942" class="insertimage" alt="" title="" border="0" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/> <br/>看看它显示各种代码的样子：<br/><br/>C#：<br/><a href="http://www.tommyhu.cn/attachment.php?fid=1943" class="highslide" onclick="return hs.expand(this)"><img src="http://www.tommyhu.cn/attachment.php?fid=1943" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>2.高亮显示代码的颜色：<br/><a href="http://www.tommyhu.cn/attachment.php?fid=1944" class="highslide" onclick="return hs.expand(this)"><img src="http://www.tommyhu.cn/attachment.php?fid=1944" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>3.HTML教程代码显示：<br/><a href="http://www.tommyhu.cn/attachment.php?fid=1945" class="highslide" onclick="return hs.expand(this)"><img src="http://www.tommyhu.cn/attachment.php?fid=1945" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>5.XAML代码：<br/><a href="http://www.tommyhu.cn/attachment.php?fid=1946" class="highslide" onclick="return hs.expand(this)"><img src="http://www.tommyhu.cn/attachment.php?fid=1946" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>呵呵。看着眼睛是不是舒服点，不过你要是还想让眼睛再舒服点，那你应该试着每天做眼保健操了。<br/><br/>我们公司每天做的眼保健操是这个，很牛的。大家怀一下旧 <a href="http://v.youku.com/v_show/id_XNDA1MTgzNjA=.html" target="_blank">http://v.youku.com/v_show/id_XNDA1MTgzNjA=.html</a> 为革命保护视力。<br/><br/><span style="color: #FF0000;"><span style="font-size: 18px;">皮肤的安装:</span></span><br/><br/>这个我觉得大部分人应该都会，，不过对于VS新手还是说说吧。<br/><br/>首先你打开VS，然后选择工具，导入导出设置，如下图：<br/><a href="http://www.tommyhu.cn/attachment.php?fid=1947" class="highslide" onclick="return hs.expand(this)"><img src="http://www.tommyhu.cn/attachment.php?fid=1947" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>接下来的界面中，选择导入皮肤：<br/><a href="http://www.tommyhu.cn/attachment.php?fid=1948" class="highslide" onclick="return hs.expand(this)"><img src="http://www.tommyhu.cn/attachment.php?fid=1948" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>点击下一步，会提示你是否备份现有的皮肤，最好备份下。<br/><br/>备份完后再点击下一步,点击浏览按钮，把你刚才下载的皮肤导入：<br/><a href="http://www.tommyhu.cn/attachment.php?fid=1949" class="highslide" onclick="return hs.expand(this)"><img src="http://www.tommyhu.cn/attachment.php?fid=1949" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>然后点击完成，就O啦。<br/><br/>希望对你的眼睛有帮助。<br/><br/>Cheers<br/><br/><br/>Tags - <a href="http://www.tommyhu.cn/tags/%25E4%25BF%259D%25E6%258A%25A4%25E8%25A7%2586%25E5%258A%259B%25E7%259A%2584visual-studio%25E7%259A%25AE%25E8%2582%25A4visual-studio%25E7%259A%25AE%25E8%2582%25A4/" rel="tag">保护视力的visual-studio皮肤visual-studio皮肤</a> , <a href="http://www.tommyhu.cn/tags/visual-studio-style/" rel="tag">visual-studio-style</a> , <a href="http://www.tommyhu.cn/tags/studiostyles/" rel="tag">studiostyles</a> , <a href="http://www.tommyhu.cn/tags/vs%25E7%259A%25AE%25E8%2582%25A4/" rel="tag">vs皮肤</a>
]]>
</description>
</item><item>
<link>http://www.tommyhu.cn/130-csharp-doc/</link>
<title><![CDATA[130道C#面试题（附答案）.doc下载]]></title> 
<author>tommyhu &lt;258546962@qq.com&gt;</author>
<category><![CDATA[ASP.NET CODE(代码片段)]]></category>
<pubDate>Thu, 01 Jul 2010 23:23:01 +0000</pubDate> 
<guid>http://www.tommyhu.cn/130-csharp-doc/</guid> 
<description>
<![CDATA[ 
	130道C#面试题（附答案）.doc下载，doc2003格式 <br/><a href="attachment.php?fid=1938">点击这里下载文件</a><br/>另外本博客还提供《<a href="http://tommyhu.cn/mianshibibei/l" target="_blank">面试必备（常见65问）.doc下载 </a>》原文链接：<a href="http://tommyhu.cn/mianshibibei/" target="_blank">http://tommyhu.cn/mianshibibei/</a><br/><br/>Tags - <a href="http://www.tommyhu.cn/tags/130%25E9%2581%2593c%2523%25E9%259D%25A2%25E8%25AF%2595%25E9%25A2%2598%25EF%25BC%2588%25E9%2599%2584%25E7%25AD%2594%25E6%25A1%2588%25EF%25BC%2589.doc%25E4%25B8%258B%25E8%25BD%25BD/" rel="tag">130道c#面试题（附答案）.doc下载</a> , <a href="http://www.tommyhu.cn/tags/c%2523/" rel="tag">c#</a> , <a href="http://www.tommyhu.cn/tags/c%2523%25E9%259D%25A2%25E8%25AF%2595%25E9%25A2%2598/" rel="tag">c#面试题</a> , <a href="http://www.tommyhu.cn/tags/%25E9%259D%25A2%25E8%25AF%2595/" rel="tag">面试</a>
]]>
</description>
</item><item>
<link>http://www.tommyhu.cn/aspnet-screenlock/</link>
<title><![CDATA[汤米糊屏幕锁，哥用的放心！]]></title> 
<author>tommyhu &lt;258546962@qq.com&gt;</author>
<category><![CDATA[ASP.NET CODE(代码片段)]]></category>
<pubDate>Sat, 26 Jun 2010 14:33:41 +0000</pubDate> 
<guid>http://www.tommyhu.cn/aspnet-screenlock/</guid> 
<description>
<![CDATA[ 
	用屏幕锁，哥还是选汤米糊屏幕锁，绿色免安装，无毒无插件，<br/>其实要和大家分享的是C# WINFORM编程应用之屏幕锁，附件中有源文件，感谢作者的贡献！<br/><a href="http://www.tommyhu.cn/attachment.php?fid=1923" class="highslide" onclick="return hs.expand(this)"><img src="http://www.tommyhu.cn/attachment.php?fid=1923" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="attachment.php?fid=1922">点击这里下载文件</a><br/>Tags - <a href="http://www.tommyhu.cn/tags/asp.net/" rel="tag">asp.net</a> , <a href="http://www.tommyhu.cn/tags/asp.net%25E5%25B1%258F%25E5%25B9%2595%25E9%2594%2581/" rel="tag">asp.net屏幕锁</a> , <a href="http://www.tommyhu.cn/tags/c%2523/" rel="tag">c#</a> , <a href="http://www.tommyhu.cn/tags/c%2523%25E5%25B1%258F%25E5%25B9%2595%25E9%2594%2581%25E4%25BB%25A3%25E7%25A0%2581/" rel="tag">c#屏幕锁代码</a>
]]>
</description>
</item><item>
<link>http://www.tommyhu.cn/dotnet-search/</link>
<title><![CDATA[刀耐特搜索那点事]]></title> 
<author>tommyhu &lt;258546962@qq.com&gt;</author>
<category><![CDATA[ASP.NET CODE(代码片段)]]></category>
<pubDate>Mon, 21 Jun 2010 11:18:56 +0000</pubDate> 
<guid>http://www.tommyhu.cn/dotnet-search/</guid> 
<description>
<![CDATA[ 
	这里大家可以看看《<a href="http://tommyhu.cn/Lucene/" target="_blank">Lucene</a>结合Sql建立索引Demo源码》<br/><a href="http://www.51aspx.com/CV/LuceneSql/" target="_blank">http://www.51aspx.com/CV/LuceneSql/</a><br/><a href="http://www.tommyhu.cn/attachment.php?fid=1909" class="highslide" onclick="return hs.expand(this)"><img src="http://www.tommyhu.cn/attachment.php?fid=1909" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>Lucene结合Sql建立索引Demo源码<br/>Lucene（这里用到的是<a href="http://tommyhu.cn/Lucene/" target="_blank">Lucene.net</a>版本也成为DotLucene）是一个信息检索的函数库(Library),利用它你可以为你的应用加上索引和搜索的功能.<br/>Lucene的使用者不需要深入了解有关全文检索的知识,仅仅学会使用库中的一个类,你就为你的应用实现全文检索的功能.<br/>不过千万别以为Lucene是一个象google那样的搜索引擎,Lucene甚至不是一个应用程序,它仅仅是一个工具,一个Library.你也可以把它理解为一个将索引,搜索功能封装的很好的一套简单易用的API.利用这套API你可以做很多有关搜索的事情,而且很方便.<br/>本源码演示了Lucene结合Sql建立索引，把Sql中的数据通过建立索引用Lucene来检索<br/>支持简单的中文分词，同时提供了Lucene.Net-2.0-004版本的源码给大家<br/>luceneSql为lucene结合数据库的Demo文件<br/>Lucene.Net-2.0-004.src为Lucene.Net最新版的源码，有兴趣的朋友可以再进行深入研究<br/>src/Lucene.Net<br/>&nbsp;&nbsp;The Lucene source code.<br/>src/Demo<br/>&nbsp;&nbsp;Some example code.<br/>src/Test<br/>&nbsp;&nbsp;Test code.<br/>contrib/*<br/>&nbsp;&nbsp;Contributed code which extends and enhances Apache Lucene.Net, but is not part of the core library.<br/><br/>DB_51aspx下为Sql数据库文件，附加后修改default.aspx.cs中的数据库配置文件编译即可<br/>默认帐号/密码：51aspx/51aspx<br/>注意：如果测试新的数据需要添加数据后点击[建立索引]按钮才能生效<br/></div></div><br/>Tags - <a href="http://www.tommyhu.cn/tags/%25E5%2588%2580%25E8%2580%2590%25E7%2589%25B9%25E6%2590%259C%25E7%25B4%25A2%25E9%2582%25A3%25E7%2582%25B9%25E4%25BA%258B/" rel="tag">刀耐特搜索那点事</a> , <a href="http://www.tommyhu.cn/tags/asp.net/" rel="tag">asp.net</a> , <a href="http://www.tommyhu.cn/tags/asp.net%25E6%2590%259C%25E7%25B4%25A2/" rel="tag">asp.net搜索</a> , <a href="http://www.tommyhu.cn/tags/asp.net%25E6%2590%259C%25E7%25B4%25A2%25E7%25B4%25A2%25E5%25BC%2595/" rel="tag">asp.net搜索索引</a> , <a href="http://www.tommyhu.cn/tags/lucene/" rel="tag">lucene</a> , <a href="http://www.tommyhu.cn/tags/lucene%25E7%25B4%25A2%25E5%25BC%2595/" rel="tag">lucene索引</a>
]]>
</description>
</item><item>
<link>http://www.tommyhu.cn/iewebcontrols/</link>
<title><![CDATA[iewebcontrols for asp.net]]></title> 
<author>tommyhu &lt;258546962@qq.com&gt;</author>
<category><![CDATA[ASP.NET CODE(代码片段)]]></category>
<pubDate>Mon, 14 Jun 2010 14:36:07 +0000</pubDate> 
<guid>http://www.tommyhu.cn/iewebcontrols/</guid> 
<description>
<![CDATA[ 
	microsoft Internet Explorer WebControls for ASP .NET<br/>IEWebControls，Microsoft Internet Explorer WebControls for ASP .NET. 微软的ASP.NET控件合集。有TabStrip Web和MultiPage Web控件（制作选项卡式页面），Toolbar Web控件（工具条式页面），TreeView Web控件<br/><a href="attachment.php?fid=1903">点击这里下载文件</a><br/><br/><br/>Tags - <a href="http://www.tommyhu.cn/tags/iewebcontrols-for-asp.net/" rel="tag">iewebcontrols-for-asp.net</a> , <a href="http://www.tommyhu.cn/tags/iewebcontrols/" rel="tag">iewebcontrols</a>
]]>
</description>
</item><item>
<link>http://www.tommyhu.cn/asp-net-Cookie/</link>
<title><![CDATA[asp.net Cookie通用操作类]]></title> 
<author>tommyhu &lt;258546962@qq.com&gt;</author>
<category><![CDATA[ASP.NET CODE(代码片段)]]></category>
<pubDate>Sun, 13 Jun 2010 05:12:51 +0000</pubDate> 
<guid>http://www.tommyhu.cn/asp-net-Cookie/</guid> 
<description>
<![CDATA[ 
	asp.net Cookie通用操作类<br/><div class="code"><br/><br/>using System; <br/>using System.Collections.Generic; <br/>using System.Linq; <br/>using System.Web; <br/>using System.Web.Security; <br/>using System.Web.UI; <br/>using System.Web.UI.HtmlControls; <br/>using System.Web.UI.WebControls; <br/>using System.Data; <br/>using System.Configuration; <br/><br/>namespace Jhgl.Smart <br/>&#123; <br/>/// &lt;summary&gt; <br/>/// Cookie操作类 <br/>/// &lt;/summary&gt; <br/>public class Cookie <br/>&#123; <br/>/// &lt;summary&gt; <br/>/// 保存一个Cookie <br/>/// &lt;/summary&gt; <br/>/// &lt;param name=&quot;CookieName&quot;&gt;Cookie名称&lt;/param&gt; <br/>/// &lt;param name=&quot;CookieValue&quot;&gt;Cookie值&lt;/param&gt; <br/>/// &lt;param name=&quot;CookieTime&quot;&gt;Cookie过期时间(小时),0为关闭页面失效&lt;/param&gt; <br/>public static void SaveCookie(string CookieName, string CookieValue, double CookieTime) <br/>&#123; <br/>HttpCookie myCookie = new HttpCookie(CookieName); <br/>DateTime now = DateTime.Now; <br/>myCookie.Value = CookieValue; <br/><br/>if (CookieTime != 0) <br/>&#123; <br/>//有两种方法，第一方法设置Cookie时间的话，关闭浏览器不会自动清除Cookie <br/>//第二方法不设置Cookie时间的话，关闭浏览器会自动清除Cookie ,但是有效期 <br/>//多久还未得到证实。 <br/>myCookie.Expires = now.AddDays(CookieTime); <br/>if (HttpContext.Current.Response.Cookies&#91;CookieName&#93; != null) <br/>HttpContext.Current.Response.Cookies.Remove(CookieName); <br/><br/>HttpContext.Current.Response.Cookies.Add(myCookie); <br/>&#125; <br/>else <br/>&#123; <br/>if (HttpContext.Current.Response.Cookies&#91;CookieName&#93; != null) <br/>HttpContext.Current.Response.Cookies.Remove(CookieName); <br/><br/>HttpContext.Current.Response.Cookies.Add(myCookie); <br/>&#125; <br/>&#125; <br/>/// &lt;summary&gt; <br/>/// 取得CookieValue <br/>/// &lt;/summary&gt; <br/>/// &lt;param name=&quot;CookieName&quot;&gt;Cookie名称&lt;/param&gt; <br/>/// &lt;returns&gt;Cookie的值&lt;/returns&gt; <br/>public static string GetCookie(string CookieName) <br/>&#123; <br/>HttpCookie myCookie = new HttpCookie(CookieName); <br/>myCookie = HttpContext.Current.Request.Cookies&#91;CookieName&#93;; <br/><br/>if (myCookie != null) <br/>return myCookie.Value; <br/>else <br/>return null; <br/>&#125; <br/>/// &lt;summary&gt; <br/>/// 清除CookieValue <br/>/// &lt;/summary&gt; <br/>/// &lt;param name=&quot;CookieName&quot;&gt;Cookie名称&lt;/param&gt; <br/>public static void ClearCookie(string CookieName) <br/>&#123; <br/>HttpCookie myCookie = new HttpCookie(CookieName); <br/>DateTime now = DateTime.Now; <br/><br/>myCookie.Expires = now.AddYears(-2); <br/><br/>HttpContext.Current.Response.Cookies.Add(myCookie); <br/>&#125; <br/>&#125; <br/>&#125;<br/><br/></div><br/>Tags - <a href="http://www.tommyhu.cn/tags/asp-net-cookie%25E9%2580%259A%25E7%2594%25A8%25E6%2593%258D%25E4%25BD%259C%25E7%25B1%25BB/" rel="tag">asp-net-cookie通用操作类</a> , <a href="http://www.tommyhu.cn/tags/c%2523-cookies%25E6%2593%258D%25E4%25BD%259C%25E7%25B1%25BB/" rel="tag">c#-cookies操作类</a> , <a href="http://www.tommyhu.cn/tags/%25E5%25B0%258F%25E7%2594%259C%25E9%25A5%25BC%25E6%2593%258D%25E4%25BD%259C%25E7%25B1%25BB/" rel="tag">小甜饼操作类</a>
]]>
</description>
</item><item>
<link>http://www.tommyhu.cn/software-log/</link>
<title><![CDATA[软件开发中的日志log问题(日志种类，如何写日志等)]]></title> 
<author>tommyhu &lt;258546962@qq.com&gt;</author>
<category><![CDATA[ASP.NET CODE(代码片段)]]></category>
<pubDate>Fri, 11 Jun 2010 01:36:03 +0000</pubDate> 
<guid>http://www.tommyhu.cn/software-log/</guid> 
<description>
<![CDATA[ 
	通过本文您将了解:<br/><span style="color: #0000FF;"><span style="font-size: 18px;">一、C#使用EventLog类操作系统日志 </span></span><br/><span style="color: #FF0000;"><span style="font-size: 18px;">二、文本文件记录日志的简单实用的日志类，</span></span><br/><span style="color: #FF1493;"><span style="font-size: 18px;">三、数据库日志系统设计及一点思路</span></span><br/><br/>............<br/><br/>Tags - <a href="http://www.tommyhu.cn/tags/%25E8%25BD%25AF%25E4%25BB%25B6%25E5%25BC%2580%25E5%258F%2591%25E4%25B8%25AD%25E7%259A%2584%25E6%2597%25A5%25E5%25BF%2597log%25E9%2597%25AE%25E9%25A2%2598%2528%25E6%2597%25A5%25E5%25BF%2597%25E7%25A7%258D%25E7%25B1%25BB%25EF%25BC%258C%25E5%25A6%2582%25E4%25BD%2595%25E5%2586%2599%25E6%2597%25A5%25E5%25BF%2597%25E7%25AD%2589%2529/" rel="tag">软件开发中的日志log问题(日志种类，如何写日志等)</a> , <a href="http://www.tommyhu.cn/tags/%25E6%2596%2587%25E6%259C%25AC%25E6%2597%25A5%25E5%25BF%2597%25E7%25B1%25BB/" rel="tag">文本日志类</a> , <a href="http://www.tommyhu.cn/tags/%25E6%2595%25B0%25E6%258D%25AE%25E6%2597%25A5%25E5%25BF%2597%25E7%25B3%25BB%25E7%25BB%259F/" rel="tag">数据日志系统</a> , <a href="http://www.tommyhu.cn/tags/c%2523%25E6%2597%25A5%25E5%25BF%2597%25E7%25B1%25BB/" rel="tag">c#日志类</a> , <a href="http://www.tommyhu.cn/tags/%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25A5%25E5%25BF%2597%25E7%25AE%25A1%25E7%2590%2586/" rel="tag">操作日志管理</a> , <a href="http://www.tommyhu.cn/tags/c%2523%25E4%25BD%25BF%25E7%2594%25A8eventlog%25E7%25B1%25BB%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E6%2597%25A5%25E5%25BF%2597/" rel="tag">c#使用eventlog类操作系统日志</a> , <a href="http://www.tommyhu.cn/tags/%25E6%2596%2587%25E6%259C%25AC%25E6%2596%2587%25E4%25BB%25B6%25E8%25AE%25B0%25E5%25BD%2595%25E6%2597%25A5%25E5%25BF%2597%25E7%259A%2584%25E7%25AE%2580%25E5%258D%2595%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584%25E6%2597%25A5%25E5%25BF%2597%25E7%25B1%25BB/" rel="tag">文本文件记录日志的简单实用的日志类</a>
]]>
</description>
</item>
</channel>
</rss>