<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.dotnetmafia.com/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>Cory Robinson&amp;#39;s Blog - All Comments</title><link>http://www.dotnetmafia.com/blogs/coryrobinson/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>re: Varying OutputCache by URL in Sitecore</title><link>http://www.dotnetmafia.com/blogs/coryrobinson/archive/2008/05/07/varying-outputcache-by-url-in-sitecore.aspx#4955</link><pubDate>Sun, 14 Aug 2011 02:29:52 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:4955</guid><dc:creator>denny</dc:creator><description>&lt;p&gt;This is Denny from infotechguyz.com. I am the creator of this automated employee termination app. Since you run a very informative blog, will you be willing to write a review for this application on your blog? &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.infotechguyz.com/Apps/ZTermEmployeeTerminationApp.html"&gt;www.infotechguyz.com/.../ZTermEmployeeTerminationApp.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This application allows IT administrators to automate common tasks when an employee leaves the company. Usually, IT administrators use multiple consoles and perform variety of tasks to terminate user accounts. This tool allows IT administrator to automate:&lt;/p&gt;
&lt;p&gt;Disable Active Directory account &lt;/p&gt;
&lt;p&gt;Hide user from Exchange / Outlook Global address list &lt;/p&gt;
&lt;p&gt;Forwards email to manager &lt;/p&gt;
&lt;p&gt;Reset user's password &lt;/p&gt;
&lt;p&gt;Enter notes in Active Directory &lt;/p&gt;
&lt;p&gt;And more.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Denny&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=4955" width="1" height="1"&gt;</description></item><item><title>re: HtmlEncodeFormatString errors in GridView BoundField after precompile</title><link>http://www.dotnetmafia.com/blogs/coryrobinson/archive/2008/02/14/htmlencodeformatstring-errors-in-gridview-boundfield-after-precompile.aspx#4191</link><pubDate>Thu, 11 Nov 2010 21:08:54 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:4191</guid><dc:creator>29er</dc:creator><description>&lt;p&gt;i have found that HtmlEncodeFormatString property does not work at all. so i just use HtmlEncode and it still works fine in 3.5&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=4191" width="1" height="1"&gt;</description></item><item><title>re: Varying OutputCache by URL in Sitecore</title><link>http://www.dotnetmafia.com/blogs/coryrobinson/archive/2008/05/07/varying-outputcache-by-url-in-sitecore.aspx#3128</link><pubDate>Thu, 22 Apr 2010 11:58:44 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:3128</guid><dc:creator>Anon</dc:creator><description>&lt;p&gt;context.Request.RawUrl&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=3128" width="1" height="1"&gt;</description></item><item><title>re: Varying OutputCache by URL in Sitecore</title><link>http://www.dotnetmafia.com/blogs/coryrobinson/archive/2008/05/07/varying-outputcache-by-url-in-sitecore.aspx#643</link><pubDate>Thu, 24 Jul 2008 14:59:29 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:643</guid><dc:creator>StevenYandell</dc:creator><description>&lt;p&gt;Man that is awesome, you are a lifesaver!&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=643" width="1" height="1"&gt;</description></item><item><title>re: Varying OutputCache by URL in Sitecore</title><link>http://www.dotnetmafia.com/blogs/coryrobinson/archive/2008/05/07/varying-outputcache-by-url-in-sitecore.aspx#586</link><pubDate>Mon, 19 May 2008 20:10:25 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:586</guid><dc:creator>KyleKelin</dc:creator><description>&lt;p&gt;What is SiteCore?&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=586" width="1" height="1"&gt;</description></item><item><title>re: HtmlEncodeFormatString errors in GridView BoundField after precompile</title><link>http://www.dotnetmafia.com/blogs/coryrobinson/archive/2008/02/14/htmlencodeformatstring-errors-in-gridview-boundfield-after-precompile.aspx#550</link><pubDate>Sat, 29 Mar 2008 06:11:44 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:550</guid><dc:creator>jonefer</dc:creator><description>&lt;p&gt;You found an alternate way to fix it.&lt;/p&gt;
&lt;p&gt;I found this at: &lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/rajbk/archive/2005/10/31/429090.aspx"&gt;weblogs.asp.net/.../429090.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It explains that this is a design flaw by microsoft.&lt;/p&gt;
&lt;p&gt;BoundField DataFormatString attribute not being applied.&lt;/p&gt;
&lt;p&gt;Version: ASP.net 2.0 RTM&lt;/p&gt;
&lt;p&gt;I wasted a few minutes figuring out this one.&lt;/p&gt;
&lt;p&gt;You have a BoundField object in a GridView bound to a field of type DateTime with a DataFormatString attribute but the format string is not being applied.&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:BoundField DataField=&amp;quot;DateOfBirth&amp;quot; DataFormatString=&amp;quot;{0:MM/dd/yyyy}&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;Instead, the field appears to be formatted using its ToString() method like so:&lt;/p&gt;
&lt;p&gt;Output: 10/31/2005 7:00:54 PM&lt;/p&gt;
&lt;p&gt;Cause&lt;/p&gt;
&lt;p&gt;To prevent cross site scripting attacks, the field value is HtmlEncoded. The HtmlEncoding occurs before applying the DataFormatString making the format string have no effect. &lt;/p&gt;
&lt;p&gt;Resolution&lt;/p&gt;
&lt;p&gt;In this case (ie. when using a field of type DateTime), set HtmlEncode to false. &lt;/p&gt;
&lt;p&gt;&amp;lt;asp:BoundField DataField=&amp;quot;DateOfBirth&amp;quot; DataFormatString=&amp;quot;{0:MM/dd/yyyy}&amp;quot; HtmlEncode=&amp;quot;false&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;The Output renders as: 10/31/2005&lt;/p&gt;
&lt;p&gt;This setting also applies to the HeaderText.&lt;/p&gt;
&lt;p&gt;The following:&lt;/p&gt;
&lt;p&gt;HeaderText=&amp;quot;Employee&amp;lt;BR/&amp;gt;Name&amp;quot;&lt;/p&gt;
&lt;p&gt;will not render a line break unless you set HtmlEncode to false.&lt;/p&gt;
&lt;p&gt;I am not sure why the ASP.net team decided against HtmlEncoding the string after applying the DataFormatString.&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=550" width="1" height="1"&gt;</description></item></channel></rss>