<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jim Jackson  - All Comments</title><link>http://weblogs.asp.net/jimjackson/default.aspx</link><description>&lt;p&gt;Character Counts.&lt;br&gt;Do the right thing.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re: Sharepoint Recycle Bin Administration</title><link>http://weblogs.asp.net/jimjackson/archive/2007/10/03/sharepoint-recycle-bin-administration.aspx#6535511</link><pubDate>Mon, 18 Aug 2008 19:03:22 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6535511</guid><dc:creator>Michelle Metzger</dc:creator><description>&lt;p&gt;Jason: &amp;nbsp;The Defualt for and End User Recycle Bin if not otherwise configured is 30 days.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6535511" width="1" height="1"&gt;</description></item><item><title>re: Notes on Customizing the Content Query Web Part Without Code</title><link>http://weblogs.asp.net/jimjackson/archive/2008/02/08/notes-on-customizing-the-content-query-web-part-without-code.aspx#6494322</link><pubDate>Thu, 07 Aug 2008 07:48:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6494322</guid><dc:creator>Lauri Vaittinen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also facing the same problem as AutoSponge. I need to show the start date of an event, but I just cannot get it work. &lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6494322" width="1" height="1"&gt;</description></item><item><title>re: Content Query Web Part Customization Overview</title><link>http://weblogs.asp.net/jimjackson/archive/2008/02/27/content-query-web-part-customization-overview.aspx#6480732</link><pubDate>Mon, 04 Aug 2008 11:04:12 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6480732</guid><dc:creator>Bhanu</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;you need to enable the publishing feature through Site settings&amp;gt;Site Features.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6480732" width="1" height="1"&gt;</description></item><item><title>re: SharePoint Logs - Tracing Service lost trace events</title><link>http://weblogs.asp.net/jimjackson/archive/2008/05/13/sharepoint-logs-tacing-service-lost-trace-events.aspx#6439562</link><pubDate>Thu, 24 Jul 2008 16:02:49 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6439562</guid><dc:creator>Dave Biskup</dc:creator><description>&lt;p&gt;Thanks! That fixed the problem I was seeing!&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6439562" width="1" height="1"&gt;</description></item><item><title>re: Opening and Reading an XML file in a document library</title><link>http://weblogs.asp.net/jimjackson/archive/2008/06/26/opening-and-reading-an-xml-file-in-a-document-library.aspx#6339717</link><pubDate>Mon, 30 Jun 2008 10:50:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6339717</guid><dc:creator>axshon</dc:creator><description>&lt;p&gt;Clearly I didn't read to the end of your post. You're absolutely correct. This is a much cleaner and more efficient method. Thanks!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6339717" width="1" height="1"&gt;</description></item><item><title>re: Opening and Reading an XML file in a document library</title><link>http://weblogs.asp.net/jimjackson/archive/2008/06/26/opening-and-reading-an-xml-file-in-a-document-library.aspx#6330757</link><pubDate>Sat, 28 Jun 2008 15:52:23 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6330757</guid><dc:creator>Peter Petrov</dc:creator><description>&lt;p&gt;You&amp;#39;ve missed my point.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t say you have to use IndexOf or my Contains()(which relies on IndexOf ) with StringComparison. I&amp;#39;ve tried to explain why you don&amp;#39;t need to use ToUpper in your case and how to replace it with a call to Equals. If you change your if statement to &lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (myFile.Name.Equals(webPartName, StringComparison.CurrentCultureIgnoreCase))&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;you will get absolutely the same results(without additional memory allocations of ToUpper)&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6330757" width="1" height="1"&gt;</description></item><item><title>re: Opening and Reading an XML file in a document library</title><link>http://weblogs.asp.net/jimjackson/archive/2008/06/26/opening-and-reading-an-xml-file-in-a-document-library.aspx#6326861</link><pubDate>Fri, 27 Jun 2008 10:49:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6326861</guid><dc:creator>axshon</dc:creator><description>&lt;p&gt;Thanks for the input!&lt;/p&gt;
&lt;p&gt;While the indexof may work to tell if &amp;quot;abc&amp;quot; is in &amp;quot;abcde&amp;quot; it will not tell you that &amp;quot;abc&amp;quot; is equal to &amp;quot;Abcde&amp;quot;. It will in fact return a non-zero value and therefore I would miss my match and load the wrong file. The idea is that the name that I'm searching for and the name that I found must match exactly except for character case.&lt;/p&gt;
&lt;p&gt;This was a real example since the client has arrangements of controls on pages for each region/country. Their naming convention required EN-US to be &amp;quot;abc.xml&amp;quot; and EU to be &amp;quot;abc_eu.xml&amp;quot; so you see my dilema. If the &amp;quot;abc_eu.xml&amp;quot; happened to appear before &amp;quot;abc.xml&amp;quot; in the list, I'd catch it and load it inappropriately.&lt;/p&gt;
&lt;p&gt;Still, if you checked the length and as well as the indexof, you'd be assured of a match but that's another operation.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6326861" width="1" height="1"&gt;</description></item><item><title>re: Opening and Reading an XML file in a document library</title><link>http://weblogs.asp.net/jimjackson/archive/2008/06/26/opening-and-reading-an-xml-file-in-a-document-library.aspx#6326556</link><pubDate>Fri, 27 Jun 2008 09:09:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6326556</guid><dc:creator>Petar Petrov</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have a suggestion related to string comparison.&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t use ToUpper() when you only need to compare two strings ignoring the case. I&amp;#39;ve written a post about that.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6326556" width="1" height="1"&gt;</description></item><item><title>Don&amp;#8217;t use .ToUpper() or .ToLower() &amp;laquo; Peter Petrov&amp;#8217;s Weblog</title><link>http://weblogs.asp.net/jimjackson/archive/2008/06/26/opening-and-reading-an-xml-file-in-a-document-library.aspx#6326427</link><pubDate>Fri, 27 Jun 2008 08:36:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6326427</guid><dc:creator>Don’t use .ToUpper() or .ToLower() « Peter Petrov’s Weblog</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Don&amp;amp;#8217;t use .ToUpper() or .ToLower() &amp;amp;laquo; Peter Petrov&amp;amp;#8217;s Weblog&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6326427" width="1" height="1"&gt;</description></item><item><title>Opening and Reading an XML file in a document library - Jim Jackson</title><link>http://weblogs.asp.net/jimjackson/archive/2008/06/26/opening-and-reading-an-xml-file-in-a-document-library.aspx#6325174</link><pubDate>Fri, 27 Jun 2008 01:16:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6325174</guid><dc:creator>Opening and Reading an XML file in a document library - Jim Jackson</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Opening and Reading an XML file in a document library - Jim Jackson&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6325174" width="1" height="1"&gt;</description></item></channel></rss>