<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://v900u039rux.maximumasp.com/Web/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>Manjula&amp;#39;s Blog : Visual Studio</title><link>http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/tags/Visual+Studio/default.aspx</link><description>Tags: Visual Studio</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Choose the right connection string for your data source!</title><link>http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/2008/01/20/choose-the-right-connection-string-for-your-database.aspx</link><pubDate>Sun, 20 Jan 2008 06:23:00 GMT</pubDate><guid isPermaLink="false">3790bee0-d05b-4b84-a272-3ed522a0473a:150</guid><dc:creator>Manjula Perera</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://v900u039rux.maximumasp.com/Web/blogs/mperera/rsscomments.aspx?PostID=150</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://v900u039rux.maximumasp.com/Web/blogs/mperera/commentapi.aspx?PostID=150</wfw:comment><comments>http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/2008/01/20/choose-the-right-connection-string-for-your-database.aspx#comments</comments><description>&lt;p&gt;&lt;img title="Connection strings main website" style="WIDTH:207px;HEIGHT:87px;" height="87" alt="Connection strings main website" src="http://dnfug.com/Web/blogs/mperera/cslogomain.jpg" width="207" /&gt;&lt;/p&gt;
&lt;p&gt;Hi friends! I thought of sharing this URL with you all where I usually get information about connection strings. This has been a reference site for me on various connection strings for several years now.&amp;nbsp;It&amp;#39;s a great site where&amp;nbsp;it gives a collection of connection strings for&amp;nbsp;most of the&amp;nbsp;databases servers,&amp;nbsp;data files and other data sources in one place.&amp;nbsp;And it gives connection strings for different scenarios (ODBC, OLE DB etc)&amp;nbsp;for the same data source as well. &lt;/p&gt;
&lt;p&gt;Check it out. &lt;img src="http://dnfug.com/Web/emoticons/emotion-5.gif" alt="Wink" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://www.connectionstrings.com/" target="_blank"&gt;http://www.connectionstrings.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://v900u039rux.maximumasp.com/Web/aggbug.aspx?PostID=150" width="1" height="1"&gt;</description><category domain="http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/tags/ASP.Net/default.aspx">ASP.Net</category><category domain="http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item><item><title>Volta - Get Electrocuted with Visual Studio 2008! </title><link>http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/2008/01/06/volta-from-microsoft-live-labs.aspx</link><pubDate>Mon, 07 Jan 2008 04:50:00 GMT</pubDate><guid isPermaLink="false">3790bee0-d05b-4b84-a272-3ed522a0473a:141</guid><dc:creator>Manjula Perera</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://v900u039rux.maximumasp.com/Web/blogs/mperera/rsscomments.aspx?PostID=141</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://v900u039rux.maximumasp.com/Web/blogs/mperera/commentapi.aspx?PostID=141</wfw:comment><comments>http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/2008/01/06/volta-from-microsoft-live-labs.aspx#comments</comments><description>&lt;p&gt;&lt;img title="Logo" style="WIDTH:167px;HEIGHT:55px;" height="55" alt="Logo" src="http://dnfug.com/Web/blogs/mperera/volta.JPG" width="167" /&gt;&lt;img src="http://dnfug.com/Web/emoticons/emotion-60.gif" alt="Lightning" /&gt;&lt;img src="http://dnfug.com/Web/emoticons/emotion-60.gif" alt="Lightning" /&gt;&lt;img src="http://dnfug.com/Web/emoticons/emotion-60.gif" alt="Lightning" /&gt;&lt;img src="http://dnfug.com/Web/emoticons/emotion-60.gif" alt="Lightning" /&gt;&lt;/p&gt;
&lt;p&gt;Microsoft dudes, slow down! We can&amp;#39;t keep up!!! &lt;img src="http://dnfug.com/Web/emoticons/emotion-8.gif" alt="Indifferent" /&gt; But I&amp;#39;m glad you&amp;#39;re trying to reduce the &amp;quot;New Stuff&amp;quot; we have to learn by&amp;nbsp;putting forward&amp;nbsp;this project &lt;img src="http://dnfug.com/Web/emoticons/emotion-21.gif" alt="Yes" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Overview&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Hot news! This is not about &lt;a class="" href="http://en.wikipedia.org/wiki/Alessandro_Volta" target="_blank"&gt;Alessandro &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt;&lt;/a&gt;. This is something Microsoft has released code named &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt;.&amp;nbsp;On December 05th 2007 &lt;a class="" href="http://labs.live.com/" target="_blank"&gt;Microsoft Live Labs&lt;/a&gt; has announced about &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;VOLTA&lt;/font&gt;. Yet again another new term for our geek vocabulary (but they might change it in future)!&amp;nbsp;&lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt;, as the name&amp;nbsp;hints it&amp;#39;s nothing to do with electricity &lt;img src="http://dnfug.com/Web/emoticons/emotion-15.gif" alt="Geeked" /&gt; But I think they are trying to&amp;nbsp;equate it&amp;#39;s super fast development cycle&amp;nbsp;to an&amp;nbsp;electric current or trying to bridge the gap between distributed bits and pieces of a distributed web application&amp;nbsp;using a spark/ tool. &lt;/p&gt;
&lt;p&gt;&lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt;&amp;nbsp;is a new set of tools developed by Microsoft to develop distributed multi-tier web applications super fast or may I say, with a minimum learning curve using the existing set of .Net tools. I just came across with this information while surfing the internet and reading through blog entries by the peers in the .Net community. Then I started digging into more information. I would like to share what I&amp;#39;ve learnt with the users of the user group and the readers of this blog. I&amp;#39;ll start with an introduction&amp;nbsp;as usual.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt;?&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Developed by &lt;a class="" href="http://blogs.msdn.com/alexbarn/archive/2006/08/17/704009.aspx" target="_blank"&gt;Erik Meijer&lt;/a&gt; (who has also worked in the LINQ project)&amp;nbsp;and a team of developers&amp;nbsp;@ Microsoft&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Used to democratize the internet cloud. What??? &lt;a class="" href="http://channel9.msdn.com/Showpost.aspx?postid=223865" target="_blank"&gt;Watch and learn&lt;/a&gt;!&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;As I said in the overview&amp;nbsp;&lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; is a new set of web development tools&amp;nbsp;developed by Microsoft to develop distributed &lt;em&gt;multi-tier web applications&lt;/em&gt; with a minimum learning curve using the existing set of .Net tools, techniques and design patterns without incorporating mixture of technologies, languages&amp;nbsp;and tools.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Tier (&lt;em&gt;execution context&lt;/em&gt;)&amp;nbsp;splitting (another new geek term!)&amp;nbsp;system where the details of the tiers aren&amp;#39;t of primary importance&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Much more than a web technology&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;This is yet a Community Technical Preview (CTP), it&amp;#39;ll take time to get adopted to the .Net web development community.&amp;nbsp;But &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; is going to be a revolution in .Net world and&amp;nbsp;the way we build web applications using .Net compatible languages like C# and VB.Net in future. Therefore it&amp;#39;s a must we keep track of the developments around &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; and have some hands on experience. We can download the&amp;nbsp;&lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; toolset by clicking on the link shown below&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Extension to Visual Studio 2008 and .Net framework 3.5&amp;nbsp;(and most probably for&amp;nbsp;all above versions to come)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;We can postpone the multi tier architecture of the distributed web application till the last critical moment of the development process. I.e. first, we can design and build our application as a .NET client application (single-tier application), then assign the portions of the application to run on the server and the client tiers late in the development process (&lt;em&gt;Tier Splitting&lt;/em&gt;). I.e. letting the complier manage creating &lt;em&gt;&lt;a class="" href="http://en.wikipedia.org/wiki/Boilerplate_(text)" target="_blank"&gt;boilerplate code&lt;/a&gt;&lt;/em&gt; such as communication between tiers&amp;nbsp;&lt;img src="http://dnfug.com/Web/emoticons/emotion-3.gif" alt="Surprise" /&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;The compiler will create cross-browser JavaScript for the client tier, web services for the server tier, and communication, serialization, synchronization, security, and other &lt;em&gt;&lt;a class="" href="http://en.wikipedia.org/wiki/Boilerplate_(text)" target="_blank"&gt;boilerplate code&lt;/a&gt;&lt;/em&gt; (redundancy&amp;nbsp;of code) to tie the tiers together &lt;img src="http://dnfug.com/Web/emoticons/emotion-8.gif" alt="Indifferent" /&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;We can still debug and test the application, as if it were still on the client-tier, because &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt;&amp;#39;s tier-splitting is deeply integrated with Visual Studio 2008 and the .NET Framework 3.5&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;We can target either web browsers (be it IE or Firefox)&amp;nbsp;or the CLR as clients and &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; handles the complexities of tier-splitting. We don&amp;#39;t need to worry about that&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Comprises with tools such as end-to-end profiling to make architectural refactoring and optimization simple and quick&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;We may base tier assignments on any criteria, such as load management, performance, or location of critical assets and capabilities. Because &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; automates the hidden linking code, it is easy for us to experiment with varying assignments of classes and methods to tiers&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;We can use all the .NET languages, libraries, and tools we already know, including debuggers, profilers, test generators, refactoring, and code analysis tools to develop distributed web applications. &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; will handle the rest &lt;img src="http://dnfug.com/Web/emoticons/emotion-19.gif" alt="Party!!!" /&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Learn more&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;There are lot of study material and sample code to start with at &lt;a class="" href="http://labs.live.com/volta/" target="_blank"&gt;&lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; home page&lt;/a&gt;. Go and grab them. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Summery&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; extends the .NET platform to distributed software and services applications, by using existing and familiar libraries, languages, tools, and techniques without the need to learn new technologies, languages&amp;nbsp;and usage of tools to bridge the communication gap between distributed code/ Objects.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Download &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; now and get electrocuted!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a title="Download Volta" style="BORDER-RIGHT:0px;BORDER-TOP:0px;BORDER-LEFT:0px;BORDER-BOTTOM:0px;" href="http://labs.live.com/volta/download/" target="_blank"&gt;&lt;img title="Download Volta" style="WIDTH:545px;HEIGHT:229px;" height="229" alt="Download Volta" src="http://dnfug.com/Web/blogs/mperera/volta-hero.jpg" width="545" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Coming Up!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;An article about &lt;font style="BACKGROUND-COLOR:#ffcc00;"&gt;Tesla&lt;/font&gt; my hero! Get ready to be electrocuted again&amp;nbsp;&lt;img src="http://dnfug.com/Web/emoticons/emotion-60.gif" alt="Lightning" /&gt;&lt;img src="http://dnfug.com/Web/emoticons/emotion-60.gif" alt="Lightning" /&gt;&lt;img src="http://dnfug.com/Web/emoticons/emotion-60.gif" alt="Lightning" /&gt; &lt;img src="http://dnfug.com/Web/emoticons/emotion-2.gif" alt="Big Smile" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://labs.live.com/volta/" target="_blank"&gt;&lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; home page&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://channel9.msdn.com/showpost.aspx?postid=365220" target="_blank"&gt;View introductory video by the creators of &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; - Part 1&amp;nbsp;- Erik Meijer and team&lt;/a&gt;&amp;nbsp;@ Channel 9, MSDN&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://channel9.msdn.com/ShowPost.aspx?PostID=365221" target="_blank"&gt;View introductory video by the creators of &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt; - Part 2 - Erik Meijer and team&lt;/a&gt;&amp;nbsp;@ Channel 9, MSDN&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://research.microsoft.com/~emeijer/" target="_blank"&gt;Erik Meijer&amp;#39;s home page&lt;/a&gt; @ Microsoft&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://research.microsoft.com/~emeijer/Papers/DemocratizingTheCloudOOPSLA2007.pdf" target="_blank"&gt;Erik Meijer&amp;#39;s article about &lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt;&lt;/a&gt;&amp;nbsp;- pdf document&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://qcon.infoq.com/london-2007/speakers/show_speaker.jsp?oid=116" target="_blank"&gt;About Erik Meijer - by QCon&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://blogs.msdn.com/alexbarn/archive/2006/08/17/704009.aspx" target="_blank"&gt;About Erik Meijer - by Alex Barnett&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://www.dotnetrocks.com/default.aspx?showNum=270" target="_blank"&gt;Erik Meijer talks about LINQ&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://blogs.zdnet.com/microsoft/?p=403" target="_blank"&gt;‘&lt;font style="BACKGROUND-COLOR:#ffff00;"&gt;Volta&lt;/font&gt;’: Microsoft’s dev platform in the Cloud? - by Mary Jo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://v900u039rux.maximumasp.com/Web/aggbug.aspx?PostID=141" width="1" height="1"&gt;</description><category domain="http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/tags/Volta/default.aspx">Volta</category><category domain="http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/tags/.Net/default.aspx">.Net</category></item><item><title>Visual Studio 2003/2005 keyboard shortcuts</title><link>http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/2007/12/31/visual-studio-2003-2005-keyboard-shortcuts.aspx</link><pubDate>Mon, 31 Dec 2007 12:11:00 GMT</pubDate><guid isPermaLink="false">3790bee0-d05b-4b84-a272-3ed522a0473a:129</guid><dc:creator>Manjula Perera</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://v900u039rux.maximumasp.com/Web/blogs/mperera/rsscomments.aspx?PostID=129</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://v900u039rux.maximumasp.com/Web/blogs/mperera/commentapi.aspx?PostID=129</wfw:comment><comments>http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/2007/12/31/visual-studio-2003-2005-keyboard-shortcuts.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;Tip&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I just found these interesting articles&amp;nbsp;and thought of sharing with the readers of this blog and the user group members. You could find most of the keyboard shortcuts of Visual Studio &lt;a class="" href="http://www.codinghorror.com/blog/archives/000315.html" target="_blank"&gt;here&lt;/a&gt;. And you could download a poster of your preffered language &lt;a class="" href="http://blogs.msdn.com/robcaron/archive/2007/01/29/1552795.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://www.codinghorror.com/blog/archives/000315.html" target="_blank"&gt;Coding Horror - by Jeff Atwood&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://blogs.msdn.com/robcaron/archive/2007/01/29/1552795.aspx" target="_blank"&gt;Rob Caron&amp;#39;s Blog&lt;/a&gt;&lt;/p&gt;&lt;img src="http://v900u039rux.maximumasp.com/Web/aggbug.aspx?PostID=129" width="1" height="1"&gt;</description><category domain="http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item><item><title>Beware with Math.Round() in C#</title><link>http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/2007/12/26/issue-with-math-round-in-c.aspx</link><pubDate>Wed, 26 Dec 2007 07:44:00 GMT</pubDate><guid isPermaLink="false">3790bee0-d05b-4b84-a272-3ed522a0473a:123</guid><dc:creator>Manjula Perera</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://v900u039rux.maximumasp.com/Web/blogs/mperera/rsscomments.aspx?PostID=123</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://v900u039rux.maximumasp.com/Web/blogs/mperera/commentapi.aspx?PostID=123</wfw:comment><comments>http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/2007/12/26/issue-with-math-round-in-c.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;Problem&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Recently I found an issue with the Math.Round() function in C# while working on an enhancement project written in Visual Studio 2003.&amp;nbsp;I.e. this function is using the Banker&amp;#39;s method.&amp;nbsp;The users of this system didn&amp;#39;t like the way figures are getting rounded&amp;nbsp;and they wanted the method used in Excel (Because they are used to Excel &lt;img src="http://dnfug.com/Web/emoticons/emotion-18.gif" alt="Huh?" /&gt;). I.e. Symmetric Arithmetic Rounding method. E.g&lt;/p&gt;
&lt;p&gt;Say we want to round 1234.50000 into the nearest integer value. Then Math.Round() returns 1234 whereas MS Excel gives 1235.&lt;/p&gt;
&lt;p&gt;I also found&amp;nbsp;a similar&amp;nbsp;issue in SQL Server 2000&amp;nbsp;some time back. It seems that Microsoft&amp;nbsp;uses contradictory methods of rounding in their products (Visual Studio, SQL Server, Visual Basic, Excel etc.)&amp;nbsp;&lt;img src="http://dnfug.com/Web/emoticons/emotion-7.gif" alt="Tongue Tied" /&gt;&lt;/p&gt;
&lt;p&gt;Most of us learnt this banker&amp;#39;s&amp;nbsp;method while schooling. But it seems that there are many other ways of rounding. Click &lt;a class="" title="Rounding methods used in Microsoft products" href="http://support.microsoft.com/kb/196652" target="_blank"&gt;here&lt;/a&gt; to view all methods of rounding and how you can implement custom rounding procedures.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font color="#0099cc"&gt;Visual Studio 2003&lt;/font&gt;&lt;/em&gt; - If we want to use Symmetric Arithmetic Rounding method we have to write our own function instead of using Math.Round(). See below for a working function found in &lt;a class="" title="Custom rounding algorithm" href="http://www.codersource.net/csharp_math_round.aspx" target="_blank"&gt;CoderSource.Net&lt;/a&gt;.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;blockquote&gt;
&lt;p&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;static&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;double&lt;/font&gt;&lt;font size="2"&gt; roundNum(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;double&lt;/font&gt;&lt;font size="2"&gt; num, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;font size="2"&gt; place)&lt;br /&gt;{ &lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;blockquote&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;double&lt;/font&gt;&lt;font size="2"&gt; n; &lt;br /&gt;n = num * Math.Pow(10, place); &lt;br /&gt;n = Math.Sign(n) * Math.Abs(Math.Floor(n + .5)); &lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; n / Math.Pow(10, place); &lt;/font&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;} &lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;em&gt;&lt;font color="#0099cc"&gt;Visual Studio 2005&lt;/font&gt;&lt;/em&gt; - This problem is sorted in this version of Visual Studio.&amp;nbsp;We can now select the rounding method in;&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;System.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Math&lt;/font&gt;&lt;font size="2"&gt;.Round&lt;/p&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;/font&gt;
&lt;p&gt;&lt;strong&gt;Rule Of Thumb&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Always&lt;/u&gt; ask from the users which method of rounding they want during the system requirements gathering stage. This will avoid&amp;nbsp;us being using the default method of rounding in our chosen development language. In this case C#.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" title="Methods of Rounding" href="http://en.wikipedia.org/wiki/Rounding" target="_blank"&gt;Wikipedia&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" title="How To Implement Custom Rounding Procedures" href="http://support.microsoft.com/kb/196652" target="_blank"&gt;Microsoft Help and Support&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" title="Custom rounding algorithm" href="http://www.codersource.net/csharp_math_round.aspx" target="_blank"&gt;CoderSource.Net&lt;/a&gt;&lt;/p&gt;&lt;img src="http://v900u039rux.maximumasp.com/Web/aggbug.aspx?PostID=123" width="1" height="1"&gt;</description><category domain="http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/tags/ASP.Net/default.aspx">ASP.Net</category><category domain="http://v900u039rux.maximumasp.com/Web/blogs/mperera/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item></channel></rss>