﻿<?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>博客园-Coding with passion-最新评论</title><link>http://www.cnblogs.com/Kellin/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Mon, 22 Oct 2007 14:56:24 GMT</pubDate><lastBuildDate>Mon, 22 Oct 2007 14:56:24 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: .NET 正则表达式中的 bug</title><link>http://www.cnblogs.com/Kellin/archive/2008/05/18/933692.html#1202234</link><dc:creator>fengfeng</dc:creator><author>fengfeng</author><pubDate>Sun, 18 May 2008 12:52:45 GMT</pubDate><guid>http://www.cnblogs.com/Kellin/archive/2008/05/18/933692.html#1202234</guid><description><![CDATA[是啊，有bug，在我用替换‘|’时 有 RegexOptions.IgnoreCase就不起作用，看到你的这篇文章受了启发，去掉就可以了。<br><br><br><div align=right><a style="text-decoration:none;" href="http://Kellin.cnblogs.com/" target="_blank">fengfeng</a> 2008-05-18 20:52 <a href="http://www.cnblogs.com/Kellin/archive/2008/05/18/933692.html#1202234#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 正确理解 C# 中的 ref 关键字</title><link>http://www.cnblogs.com/Kellin/archive/2008/04/09/873755.html#1145899</link><dc:creator>Donix</dc:creator><author>Donix</author><pubDate>Wed, 09 Apr 2008 15:35:00 GMT</pubDate><guid>http://www.cnblogs.com/Kellin/archive/2008/04/09/873755.html#1145899</guid><description><![CDATA[学习了<br><br><div align=right><a style="text-decoration:none;" href="http://Kellin.cnblogs.com/" target="_blank">Donix</a> 2008-04-09 23:35 <a href="http://www.cnblogs.com/Kellin/archive/2008/04/09/873755.html#1145899#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: A Bug in DropDownList</title><link>http://www.cnblogs.com/Kellin/archive/2008/02/22/882005.html#1077575</link><dc:creator>Hightree</dc:creator><author>Hightree</author><pubDate>Fri, 22 Feb 2008 06:05:00 GMT</pubDate><guid>http://www.cnblogs.com/Kellin/archive/2008/02/22/882005.html#1077575</guid><description><![CDATA[You are a hero!<br>I spent hours to reach this article and resolve my problem in 5 minutes.<br>Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br><div align=right><a style="text-decoration:none;" href="http://Kellin.cnblogs.com/" target="_blank">Hightree</a> 2008-02-22 14:05 <a href="http://www.cnblogs.com/Kellin/archive/2008/02/22/882005.html#1077575#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: A Bug in DropDownList</title><link>http://www.cnblogs.com/Kellin/archive/2008/02/06/882005.html#1065522</link><dc:creator>baba</dc:creator><author>baba</author><pubDate>Wed, 06 Feb 2008 15:22:00 GMT</pubDate><guid>http://www.cnblogs.com/Kellin/archive/2008/02/06/882005.html#1065522</guid><description><![CDATA[with out using of try catch block how to generate the code<br><br><div align=right><a style="text-decoration:none;" href="http://Kellin.cnblogs.com/" target="_blank">baba</a> 2008-02-06 23:22 <a href="http://www.cnblogs.com/Kellin/archive/2008/02/06/882005.html#1065522#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: A Bug in DropDownList</title><link>http://www.cnblogs.com/Kellin/archive/2007/12/21/882005.html#1008803</link><dc:creator>RichardZhang6955</dc:creator><author>RichardZhang6955</author><pubDate>Fri, 21 Dec 2007 03:46:00 GMT</pubDate><guid>http://www.cnblogs.com/Kellin/archive/2007/12/21/882005.html#1008803</guid><description><![CDATA[This is for sure a bug. I have same issue my website. It worked in 1.1. It does not work in 2.0. <br><br><div align=right><a style="text-decoration:none;" href="http://Kellin.cnblogs.com/" target="_blank">RichardZhang6955</a> 2007-12-21 11:46 <a href="http://www.cnblogs.com/Kellin/archive/2007/12/21/882005.html#1008803#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: A Bug in DropDownList</title><link>http://www.cnblogs.com/Kellin/archive/2007/11/23/882005.html#970411</link><dc:creator>Stefanie</dc:creator><author>Stefanie</author><pubDate>Fri, 23 Nov 2007 12:27:00 GMT</pubDate><guid>http://www.cnblogs.com/Kellin/archive/2007/11/23/882005.html#970411</guid><description><![CDATA[Hi!<br><br>I had a similar problem:<br>This was my code:<br>        tmp_ddl.DataValueField = CtrlSPCode;<br>        tmp_ddl.DataTextField = CtrlSPFulltext;<br>        tmp_ddl.DataSource = dr;<br>        tmp_ddl.SelectedValue = DDList_ID;<br>        try<br>        {<br>             tmp_ddl.DataBind();<br>        }<br>        catch (ArgumentOutOfRangeException e)<br>        {<br>            tmp_ddl.SelectedValue = &quot;&quot;;<br>            tmp_ddl.DataBind(); // second DataBind()<br>        }<br>No matter what I tried the second DataBind() also threw an exception.<br><br>The solution:<br>First call DataBind()<br>then set SelectedValue!<br>My new code:<br>        tmp_ddl.DataValueField = CtrlSPCode;<br>        tmp_ddl.DataTextField = CtrlSPFulltext;<br>        tmp_ddl.DataSource = dr;<br>        tmp_ddl.DataBind();<br>        tmp_ddl.SelectedValue = DDList_ID; // No exception, even if this Value doesn't exist<br><br>So in your case this should clear the selection:<br>DropDownList_Option.DataSource = items2;<br>DropDownList_Option.DataBind(); <br>DropDownList_Option.ClearSelection();<br><br><br>(I use .net Version 2.0)<br><br><br>cu<br>Stefanie<br><br><br><div align=right><a style="text-decoration:none;" href="http://Kellin.cnblogs.com/" target="_blank">Stefanie</a> 2007-11-23 20:27 <a href="http://www.cnblogs.com/Kellin/archive/2007/11/23/882005.html#970411#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: .NET 正则表达式中的 bug</title><link>http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#934451</link><dc:creator>A.Z</dc:creator><author>A.Z</author><pubDate>Tue, 23 Oct 2007 05:31:00 GMT</pubDate><guid>http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#934451</guid><description><![CDATA[<font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // The characters, whoes value are smaller than 0xff, are not expected to be matched.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int i = 0xff; i &lt;= 0xffff; i++)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Assert(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !Regex.IsMatch(((Char)0x69).ToString(), string.Format(@"[\u{0:X4}]", i), RegexOptions.IgnoreCase),<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string.Format("The character was not expected to be matched: 0x{0:X4}!", i));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
</font><br />
0x0130 -&gt;<br />
<br />
<img height="510" alt="" src="http://www.cnblogs.com/images/cnblogs_com/a-z/u0130.PNG" width="447" border="0" />
<br><br><div align=right><a style="text-decoration:none;" href="http://Kellin.cnblogs.com/" target="_blank">A.Z</a> 2007-10-23 13:31 <a href="http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#934451#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: .NET 正则表达式中的 bug</title><link>http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#934034</link><dc:creator>光阴四溅</dc:creator><author>光阴四溅</author><pubDate>Tue, 23 Oct 2007 01:52:00 GMT</pubDate><guid>http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#934034</guid><description><![CDATA[@亚历山大同志<br>.net正则表达式经常莫名其妙的资源耗尽 <br>这个跟表达式的写法有关系<br>另外, 应该不是.net的regex吧<br><br>很想知道这个bug的原因<br><br><div align=right><a style="text-decoration:none;" href="http://Kellin.cnblogs.com/" target="_blank">光阴四溅</a> 2007-10-23 09:52 <a href="http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#934034#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: .NET 正则表达式中的 bug</title><link>http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#933936</link><dc:creator>亚历山大同志</dc:creator><author>亚历山大同志</author><pubDate>Tue, 23 Oct 2007 00:57:00 GMT</pubDate><guid>http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#933936</guid><description><![CDATA[.NET的正则表达式经常莫名其妙的资源耗尽，所以虽然强大，但是我倒是愿意能不用则不用<br><br><div align=right><a style="text-decoration:none;" href="http://Kellin.cnblogs.com/" target="_blank">亚历山大同志</a> 2007-10-23 08:57 <a href="http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#933936#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: .NET 正则表达式中的 bug</title><link>http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#933874</link><dc:creator>Kellin</dc:creator><author>Kellin</author><pubDate>Mon, 22 Oct 2007 23:54:00 GMT</pubDate><guid>http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#933874</guid><description><![CDATA[@布尔<br>你用的是什么版本？IE 7 好像是没什么问题的。我这里 IE 6 是有问题的。另外文中有问题的脚本是那句被注释的：<br>// var re = /[\u00FF-\uFFFF]+/i;<br><br><br><br><div align=right><a style="text-decoration:none;" href="http://Kellin.cnblogs.com/" target="_blank">Kellin</a> 2007-10-23 07:54 <a href="http://www.cnblogs.com/Kellin/archive/2007/10/23/933692.html#933874#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>