<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.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>GotCommunityNet</title><link>http://forums.asp.net/131.aspx</link><description>Discuss the GotCommunityNet open source application for ASP.NET 1.x.  &lt;a href="http://www.gotdotnet.com/community/workspaces/default.aspx?id=39959859-68b5-4f5e-bd85-c1a8555e39a9" target="_blank"&gt;GotCommunityNet Home&lt;/a&gt; &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=156&amp;c=25" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Book price locale fix for GCN 1.1</title><link>http://forums.asp.net/thread/1069630.aspx</link><pubDate>Sun, 02 Oct 2005 18:01:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1069630</guid><dc:creator>wschlichtman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1069630.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=131&amp;PostID=1069630</wfw:commentRss><description>I think it only showed up if you changed locale in Windows, such as from Finnish to English-US. It was listed in the "Known Bugs" area of the docs. It was apparent on my system.</description></item><item><title>Re: Book price locale fix for GCN 1.1</title><link>http://forums.asp.net/thread/1069021.aspx</link><pubDate>Sat, 01 Oct 2005 09:05:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1069021</guid><dc:creator>para7</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1069021.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=131&amp;PostID=1069021</wfw:commentRss><description>Thanks for the fix. But I haven't noticed any errors. Can't see any difference after the fix.&lt;BR&gt;&lt;BR&gt;Jørgen</description></item><item><title>Book price locale fix for GCN 1.1</title><link>http://forums.asp.net/thread/1068928.aspx</link><pubDate>Sat, 01 Oct 2005 02:35:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1068928</guid><dc:creator>wschlichtman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1068928.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=131&amp;PostID=1068928</wfw:commentRss><description>I think I've fixed the book price bug listed in the documentation.&lt;BR&gt;&lt;BR&gt;In the file App_Code\Engine\Modules\Books\Controls\BookPrice.cs, add the following private variable to the BookPrice class:&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;private&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;string&lt;/FONT&gt;&lt;FONT size=2&gt; _priceFormatString = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"{0:C}"&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;BR&gt;&lt;BR&gt;&lt;FONT size=3&gt;In the RenderContents() method, replace the line:&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;writer.Write(_price.ToString(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"c"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;CultureInfo&lt;/FONT&gt;&lt;FONT size=2&gt;(_cultureName)));&lt;BR&gt;&lt;BR&gt;&lt;FONT size=3&gt;with:&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT size=2&gt;&lt;/P&gt;
&lt;P&gt;writer.Write(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;String&lt;/FONT&gt;&lt;FONT size=2&gt;.Format(_priceFormatString, _price));&lt;BR&gt;&lt;BR&gt;&lt;FONT size=3&gt;The CultureName property is never changed from it's initial state which prevents the CultureInfo() class from getting properly instantiated. The change I've proposed seems to work fine and the price is now localized. Please let me know if you find otherwise.&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description></item></channel></rss>