<?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>IBlog&amp;lt;Johan&amp;gt;</title><link>http://weblogs.asp.net/jdanforth/default.aspx</link><description>Johan Danforth's Blog</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Most Wanted: IronRuby Integration in Visual Studio 2010</title><link>http://weblogs.asp.net/jdanforth/archive/2009/12/16/most-wanted-ironruby-integration-in-visual-studio-2010.aspx</link><pubDate>Wed, 16 Dec 2009 12:16:14 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7280083</guid><dc:creator>jdanforth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7280083</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/12/16/most-wanted-ironruby-integration-in-visual-studio-2010.aspx#comments</comments><description>&lt;p&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 5px; display: inline; border-top: 0px; border-right: 0px" title="ironruby" border="0" alt="ironruby" align="right" src="http://weblogs.asp.net/blogs/jdanforth/ironruby_75049719.png" width="175" height="50" /&gt; This week the IronRuby team announced &lt;a href="http://ironruby.net/" target="_blank"&gt;IronRuby version 1.0 RC&lt;/a&gt; at RubyConf 2009 and IR is really starting to shape up into something awesome when looking at compatibility and performance.&lt;/p&gt;  &lt;p&gt;The blog to really, really follow if you’re interested in IronRuby is &lt;a href="http://blog.jimmy.schementi.com/" target="_blank"&gt;Jimmy Schemanti’s&lt;/a&gt; (PM and developer on the IronRuby team). He’s got up-to-date information on the project as well as good tips on how to make best use of IR in your other .NET projects.&lt;/p&gt;  &lt;p&gt;In a couple of places on the Net, there’s been discussions and also deep concerns about the fact that there is no proper support for the Iron* languages inside Visual Studio. One interesting discussion is going on in the IronRuby mailing list –&amp;gt; &lt;a title="http://www.mail-archive.com/ironruby-core@rubyforge.org/msg05124.html" href="http://www.mail-archive.com/ironruby-core@rubyforge.org/msg05124.html"&gt;http://www.mail-archive.com/ironruby-core@rubyforge.org/msg05124.html&lt;/a&gt; and another over at Sapphire Steel, who released an alpha version of IR integration in VS2008 –&amp;gt; &lt;a title="http://www.sapphiresteel.com/Who-Needs-IronRuby" href="http://www.sapphiresteel.com/Who-Needs-IronRuby"&gt;http://www.sapphiresteel.com/Who-Needs-IronRuby&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;A couple of months ago, &lt;a href="http://community.sharpdevelop.net/blogs/mattward/archive/2009/10/04/IronRubyIntegrationInSharpDevelop31.aspx" target="_blank"&gt;Matt Ward wrote a blog post about IronRuby integration in SharpDevelop 3.1&lt;/a&gt;. &lt;a href="http://sourceforge.net/projects/sharpdevelop/" target="_blank"&gt;SharpDevelop being an open source IDE&lt;/a&gt; for the .NET platform which supports various project types and multiple programming languages. Today, this might be the best option for people who are used to the the programming support you normally get in Visual Studio.&lt;/p&gt;  &lt;p&gt;Personally I would hate to see the thousands of hours from the IronRuby team and the wonderful community being spent on a product not used just because the lack of VS integration. It’s my personal view that most .NET developers have been totally spoiled by the wonderful support VS gives us. We’re used to getting project support, syntax highlightning, refactoring, F5 debugging and at least *some* intellisense.&amp;#160; &lt;/p&gt;  &lt;p&gt;I know that some people over at Microsoft is a bit disappointed in the community (IronRuby is a kind of an Open Source project after all) for not doing something in VS for IronRuby already – Sapphire shows is possible for sure, and it should be even “less hard” in VS2010 – but I think I know why. Coding up a good VS integration with the features I listed above is NOT a walk in the park to get right. We’re talking thousands of hours that MIGHT go down the drain if Microsoft eventually releases something themselves. &lt;/p&gt;  &lt;p&gt;For a while now there’s been a suggestion on &lt;a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=479957" target="_blank"&gt;Microsoft Connect for IronRuby integration into VS2010&lt;/a&gt;, which has now become the most up-voted feature request for VS2010!&lt;/p&gt;  &lt;p&gt;A couple of days ago, Jimmy commented this &lt;a href="http://blog.jimmy.schementi.com/2009/12/ironruby-rubyconf-part-3-sneaking-ruby.html" target="_blank"&gt;on his own blog post&lt;/a&gt;:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;VS integration will happen eventually; we've been focusing on the languages up until now. After the 1.0 is released we'll probably have some time to make the VS integration. However, I'm a little disappointed in the community for not making this already ...&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;And yesterday &lt;a href="http://blog.jimmy.schementi.com/2009/12/ironruby-rubyconf-2009-part-4-project.html" target="_blank"&gt;Jimmy wrote&lt;/a&gt;:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;After 1.0 is released, we’ll probably take a bit of a break, but then look to do some features we didn’t get to finish in 1.0, as well as Visual Studio Integration, since it’s the highest voted feature for VS2010.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;So, there you got it. It WILL happen eventually, I wish it will be sooner than later and I hope to see the same kind of short release cycles we’ve seen for IronRuby. :D&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7280083" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/IronRuby/default.aspx">IronRuby</category></item><item><title>Weeko – MEF and WPF to plug in Tool Windows into Visual Studio 2010</title><link>http://weblogs.asp.net/jdanforth/archive/2009/10/30/weeko-mef-and-wpf-to-plug-in-tool-windows-into-visual-studio-2010.aspx</link><pubDate>Fri, 30 Oct 2009 18:16:39 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7243410</guid><dc:creator>jdanforth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7243410</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/10/30/weeko-mef-and-wpf-to-plug-in-tool-windows-into-visual-studio-2010.aspx#comments</comments><description>&lt;p&gt;&lt;img style="display: inline; margin-left: 0px; margin-right: 0px" align="right" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=weeko&amp;amp;DownloadId=89544&amp;amp;Build=15896" width="240" height="68" /&gt;Today I opened up a &lt;a href="http://weeko.codeplex.com/" target="_blank"&gt;new Codeplex project&lt;/a&gt; called “Weeko”, which is a Sioux name for “pretty”.&lt;/p&gt;  &lt;p&gt;Weeko is an experiment which uses MEF to easily plug in tool windows into VS2010. The tool windows are developed as ordinary WPF UserControls. Install the Visual Studio extension and drop your user control assembly into the extensions directory of Visual Studio and it will show up inside the IDE.&lt;/p&gt;  &lt;p&gt;This is how it can look with a couple of sample “addins” – The Rss feed, Twitter feed and a digital clock are all WPF User Controls which are exported and imported using MEF – Managed Extensibility Framework.&lt;/p&gt;  &lt;p&gt;&lt;img title="sample.png" alt="sample.png" src="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=weeko&amp;amp;DownloadId=89552" width="640" height="410" /&gt;&lt;/p&gt;  &lt;p&gt;Feel free to check it out and if you got some ideas for improvements please let me know. I’m thinking about how to better manage available plugins, load/unload etc.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7243410" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Weeko/default.aspx">Weeko</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/MEF/default.aspx">MEF</category></item><item><title>Some Good Feedback for Writespace</title><link>http://weblogs.asp.net/jdanforth/archive/2009/10/25/some-good-feedback-for-writespace.aspx</link><pubDate>Sun, 25 Oct 2009 16:34:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7238936</guid><dc:creator>jdanforth</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7238936</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/10/25/some-good-feedback-for-writespace.aspx#comments</comments><description>&lt;p&gt;&lt;img border="0" alt="Writespace" align="right" src="http://weblogs.asp.net/blogs/jdanforth/WindowsLiveWriter/WCFLearningsDrawingonMultipleMonitors_13EA4/Logo2_white_small_3.png" width="200" height="94" /&gt;It’s been a while since I actually looked at the &lt;a href="http://writespace.codeplex.com/stats" target="_blank"&gt;Codeplex statistics for Writespace&lt;/a&gt;, but it seems that people keep downloading it and that’s always fun! So far Writespace has been downloaded over 4.000 times which is peanuts compared to other open source tools, but perhaps I helped some people get more productive and that feels good!&lt;/p&gt;  &lt;p&gt;Following the top referring sites I can see that this simple addin for Word gets some good reviews from people that compares it with other similar tools. One of the best articles I’ve seen so far is the one by Rob Oakes, which he calls &lt;a href="http://www.oak-tree.us/blog/index.php/2008/11/20/software-cuttingoutclutter"&gt;On Writing – Software that cuts out distraction and clutter&lt;/a&gt; where he compares DarkRoom, WriteRoom, Writespace and PyRoom. They are all very similar to each other.&lt;/p&gt;  &lt;p&gt;What’s not so cool is that Writespace is an open source project, and it would have been fun to get some patches or help from other developers. Of the 4.000 downloads, I’m sure there are a whole lot of .NET developers that know their XAML well. I’ve got some feedback for ideas, one guy I know made some changes but didn’t send me code or a patch… pity. If you extend open source software, shouldn’t you share that? Maybe it’s too hard to create a patch? &lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7238936" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Writespace/default.aspx">Writespace</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Open+Source/default.aspx">Open Source</category></item><item><title>Writespace Updated with Command Line Version and Some IronRuby Fun</title><link>http://weblogs.asp.net/jdanforth/archive/2009/10/16/writespace-updated-with-command-line-version-and-some-ironruby-fun.aspx</link><pubDate>Fri, 16 Oct 2009 13:47:41 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7231415</guid><dc:creator>jdanforth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7231415</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/10/16/writespace-updated-with-command-line-version-and-some-ironruby-fun.aspx#comments</comments><description>&lt;p&gt;&lt;img border="0" alt="Writespace" align="right" src="http://weblogs.asp.net/blogs/jdanforth/WindowsLiveWriter/WCFLearningsDrawingonMultipleMonitors_13EA4/Logo2_white_small_3.png" width="200" height="94" /&gt;I had a few minutes to fix a few issues and release an updated version (1.3) of &lt;a href="http://writespace.codeplex.com/" target="_blank"&gt;Writespace&lt;/a&gt; – the full screen editing environment addin for Word.&lt;/p&gt;  &lt;p&gt;So what’s new? I removed the annoying illuminated animation for row and column when typing. Added F4 shortcut for the Options dialog. Also added a command line program and a sample ditto to run Writespace with IronRuby. &lt;/p&gt;  &lt;p&gt;IronRuby can be downloaded from &lt;a href="http://ironruby.codeplex.com"&gt;http://ironruby.codeplex.com&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The command line programs are optional downloads, but it seems to run pretty well if pinned to the Windows 7 TaskBar:   &lt;br /&gt;&lt;img title="Win7Taskbar.png" alt="Win7Taskbar.png" src="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=writespace&amp;amp;DownloadId=87983" /&gt;&lt;/p&gt;  &lt;p&gt;Have fun!&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7231415" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Ruby/default.aspx">Ruby</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Writespace/default.aspx">Writespace</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Windows+7/default.aspx">Windows 7</category></item><item><title>SQL Azure Explorer on Channel 9</title><link>http://weblogs.asp.net/jdanforth/archive/2009/10/03/sql-azure-explorer-on-channel-9.aspx</link><pubDate>Sat, 03 Oct 2009 10:25:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7222152</guid><dc:creator>jdanforth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7222152</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/10/03/sql-azure-explorer-on-channel-9.aspx#comments</comments><description>&lt;p&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 5px; display: inline; border-top: 0px; border-right: 0px" title="SQL Azure Explorer Logo" border="0" alt="SQL Azure Explorer Logo" align="right" src="http://weblogs.asp.net/blogs/jdanforth/logo_6FAE8B7F.png" width="326" height="93" /&gt;Our SQL Azure Explorer Addin for VS2010, which is on Codeplex was mentioned on &lt;a href="http://channel9.msdn.com/shows/This%20Week%20On%20Channel%209/TWC9-SQL-Azure-MVC-2-New-Channel-9-Content/" target="_blank"&gt;the&amp;#160; Last Week on Channel 9 show&lt;/a&gt;, which is cool. Made the download stats peek even though it’s for VS2010 Beta 1 only and you need to have an SQL Azure CTP account.&amp;#160; &lt;/p&gt;  &lt;p&gt;That show is one of the best for people like me who need to keep up with the latest stuff happening on the Windows and .NET front.&lt;/p&gt;  &lt;p&gt;I need to get some time and refactor the data access layer. It works, but it’s not consistent and could use more integration tests. Or I’ll let it be and just work on new features, which is way funnier ;)&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7222152" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Tools/default.aspx">Tools</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Azure/default.aspx">Azure</category></item><item><title>Custom Caret “cheat” in WPF TextBox</title><link>http://weblogs.asp.net/jdanforth/archive/2009/09/29/custom-caret-cheat-in-wpf-textbox.aspx</link><pubDate>Tue, 29 Sep 2009 12:13:29 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7219909</guid><dc:creator>jdanforth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7219909</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/09/29/custom-caret-cheat-in-wpf-textbox.aspx#comments</comments><description>&lt;p&gt;I’ve seen people ask for custom Carets in the WPF TextBox, like in insert mode and you want to have a block caret or underscore. Some say it’s going to be possible/easier to do this in .NET 4.0, but until then, there are some simple cheats you can do to add it yourself, but it will need some tweaking. In this test I’ve put a Canvas on top of the TextBox, on which I draw the custom caret and move it when keys are pressed in the TextBox. If you absolutely need this behavior you can probably tweak it to work, but movement, drawing and all that depends on the font face and size.&lt;/p&gt;  &lt;p&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="CustomCaret" border="0" alt="CustomCaret" src="http://weblogs.asp.net/blogs/jdanforth/CustomCaret_4AAE1C46.png" width="304" height="304" /&gt; &lt;/p&gt;  &lt;p&gt;In my sample code, the custom caret is invisible to start with, and only drawn when in overwrite mode. The drawing is kind of jerky when using the arrow keys and home, end etc, but I think it can be fixed. &lt;a href="http://blogs.msdn.com/llobo/archive/2007/02/08/changing-caret-color-in-textbox.aspx" target="_blank"&gt;One way would be to make the built in caret the same color as the TextBox background, like described by Lester in his blog post&lt;/a&gt;.&lt;/p&gt;  &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:fb3a1972-4489-4e52-abe7-25a00bb07fdf:14703514-2700-4852-b909-2ba43cc6b095" class="wlWriterEditableSmartContent"&gt;&lt;p&gt; &lt;a href="http://weblogs.asp.net/blogs/jdanforth/CustomCaret_07096D80.zip" target="_blank"&gt;Source code for sample&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7219909" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/WPF/default.aspx">WPF</category></item><item><title>SQL Azure Explorer Addin for VS2010 Beta 1</title><link>http://weblogs.asp.net/jdanforth/archive/2009/09/29/sql-azure-explorer-addin-for-vs2010-beta-1.aspx</link><pubDate>Tue, 29 Sep 2009 11:23:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7219875</guid><dc:creator>jdanforth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7219875</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/09/29/sql-azure-explorer-addin-for-vs2010-beta-1.aspx#comments</comments><description>&lt;p&gt;Me and &lt;a href="http://buzzfrog.blogs.com/zabrak/" target="_blank"&gt;Dag König&lt;/a&gt; just released the alpha version of a (so far) small Codeplex project we’ve been working on for the last week or so – an &lt;a href="http://sqlazureexplorer.codeplex.com/" target="_blank"&gt;SQL Azure Explorer Addin for Visual Studio 2010 Beta 1&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;The reasons for this project are several, but mostly to learn more about VS2010, how to create addins for it, dig into SQL Azure and at the same time learn some WPF and XAML.&lt;/p&gt;  &lt;p&gt;The addin is a VSIX package and easily installed in VS2010 by just &lt;a href="http://sqlazureexplorer.codeplex.com/Release/ProjectReleases.aspx#ReleaseFiles" target="_blank"&gt;downloading&lt;/a&gt; and double clicking it.&lt;/p&gt;  &lt;p&gt;Here’s a sample screenshot of the explorer and the integrated SQL Editor:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jdanforth/SqlEditor_02A753A5.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="SQL Azure Explorer Addin" border="0" alt="SQL Azure Explorer Addin" src="http://weblogs.asp.net/blogs/jdanforth/SqlEditor_thumb_5F2AAF3F.png" width="622" height="480" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;If you got VS2010 Beta 1 and some SQL Azure databases you work with, please download and feedback. I’m sure Microsoft will eventually support SQL Azure in the built-in server explorer, but as I said, this is for fun (it’s great fun to code addins) and the code might be useful for other future projects :)&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7219875" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Tools/default.aspx">Tools</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/WPF/default.aspx">WPF</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Azure/default.aspx">Azure</category></item><item><title>Visual Studio 2008 Web Test Not Recording on 64-bit Windows 7</title><link>http://weblogs.asp.net/jdanforth/archive/2009/09/05/visual-studio-2008-web-test-not-recording-on-64-bit-windows-7.aspx</link><pubDate>Sat, 05 Sep 2009 14:49:06 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7193159</guid><dc:creator>jdanforth</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7193159</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/09/05/visual-studio-2008-web-test-not-recording-on-64-bit-windows-7.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jdanforth/vs_54BAC493.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="vs" border="0" alt="vs" align="right" src="http://weblogs.asp.net/blogs/jdanforth/vs_thumb_191AB5D3.jpg" width="240" height="157" /&gt;&lt;/a&gt; I was about to record a web test in Visual Studio 2008 Team System today, and the recorder refused to record anything. And the Recorder “bar” in IE 8 was not showing. After some digging around, the issue was fixed by deleting a few registry keys. Found it on &lt;a href="http://blogs.msdn.com/mtaute/archive/2007/11/09/diagnosing-and-fixing-web-test-recorder-bar-issues.aspx"&gt;Michael Taute's Blog : Diagnosing and fixing Web Test recorder bar issues.&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Quote from his blog page:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Vista caches the list of explorer bars you have available and the recorder bar was not included in your list. The fix is to force Windows to rebuild that cache. To do this, first make sure you have all Internet Explorer instances shut down, then open the 32 bit registry editor and delete the following keys:&lt;/p&gt;    &lt;p&gt;     &lt;br /&gt;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\Component Categories\{00021493-0000-0000-C000-000000000046}      &lt;br /&gt;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\Component Categories\{00021494-0000-0000-C000-000000000046}      &lt;br /&gt;&lt;/p&gt;    &lt;p&gt;[Note: by default, the 32 bit registry editor is located in %WINDIR%\SysWow64\RegEdt32.exe]     &lt;br /&gt;&lt;/p&gt;    &lt;p&gt;The next time you boot Internet Explorer, your explorer bar cache will be rebuilt and the recorder bar should be available.&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7193159" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Unit+Testing/default.aspx">Unit Testing</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/VS2008/default.aspx">VS2008</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Windows+7/default.aspx">Windows 7</category></item><item><title>Windows 7 RC Feels Very Stable</title><link>http://weblogs.asp.net/jdanforth/archive/2009/05/13/windows-7-rc-feels-very-stable.aspx</link><pubDate>Wed, 13 May 2009 08:04:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7084754</guid><dc:creator>jdanforth</dc:creator><slash:comments>5</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7084754</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/05/13/windows-7-rc-feels-very-stable.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jdanforth/win7logo_76F76A42.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="Windows 7" border="0" alt="Windows 7" align="right" src="http://weblogs.asp.net/blogs/jdanforth/win7logo_thumb_1C80E7A4.png" width="110" height="143" /&gt;&lt;/a&gt; I upgraded to Win7rc as fast as I could from the beta and pretty much all the problems I had on the beta are gone! I’ve never experienced a beta OS as stable as this one, it’s nothing short of impressive.&lt;/p&gt;  &lt;p&gt;Hangs on reboot/shutdown are gone.&lt;/p&gt;  &lt;p&gt;Annoying stuttering sound probs are gone.&lt;/p&gt;  &lt;p&gt;File copy probs are gone.&lt;/p&gt;  &lt;p&gt;Screen update probs gone.&lt;/p&gt;  &lt;p&gt;I’m running 64-bit on a DELL Precision M4400 and the funny thing is that think I’ve not installed any extra drivers except for the touchpad and the initial network drivers, and it runs like a charm. It was a nightmare to get it working properly on 64-bit Vista, even when it came pre-installed with it from DELL! (Shame on you DELL to ship a box that doesn’t even run properly on the pre-installed software!!)&lt;/p&gt;  &lt;p&gt;I will have to install the extra software to get the built-in 3G mobile network running and that was kind of tricky on the beta, and the finger-print reader I’m not even going to bother with.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7084754" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Windows+7/default.aspx">Windows 7</category></item><item><title>Windows 7 Release Candidate Availability</title><link>http://weblogs.asp.net/jdanforth/archive/2009/04/30/windows-7-release-candidate-availability.aspx</link><pubDate>Thu, 30 Apr 2009 07:49:09 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7066408</guid><dc:creator>jdanforth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7066408</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/04/30/windows-7-release-candidate-availability.aspx#comments</comments><description>&lt;p&gt;&lt;img style="margin: 5px" title="Windows 7 Beta" border="0" alt="Windows 7 Beta" align="right" src="http://weblogs.asp.net/blogs/jdanforth/image_3D881299.png" width="244" height="154" /&gt;Glad to &lt;a href="http://blogs.technet.com/askperf/archive/2009/04/28/windows-7-release-candidate-availability-office-2007-sp2-rtm.aspx" target="_blank"&gt;read about the upcoming RC release of Windows 7&lt;/a&gt;. Just wondering how I should “migrate” to the RC from by current beta as I’ve spent days and days to get it in pretty good shape. Lots of job, but Win7 is just worth it.&lt;/p&gt;  &lt;p&gt;From the &lt;a href="http://blogs.technet.com/askperf" target="_blank"&gt;Askperf webby&lt;/a&gt;:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;We now have some dates that we can share with you.&amp;#160; The RC build is slated to be available for download by MSDN / TechNet subscribers this Thursday (April 30, 2009).&amp;#160; Broader, public availability will begin the following Tuesday (May 5, 2009).&amp;#160; If you haven’t already started using Windows 7, there are plenty of changes since the Beta release.&amp;#160; You can read more about these changes in the following posts from the Engineering Windows 7 blog: &lt;a href="http://blogs.msdn.com/e7/archive/2009/02/26/some-changes-since-beta.aspx"&gt;Some Changes Since Beta for the RC&lt;/a&gt; and &lt;a href="http://blogs.msdn.com/e7/archive/2009/03/13/a-few-more-changes-from-beta-to-rc.aspx"&gt;A few more changes from Beta to RC…&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7066408" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Windows+7/default.aspx">Windows 7</category></item><item><title>Restored 64-bit Windows 7 Beta from Windows Home Server Backup on a DELL Laptop</title><link>http://weblogs.asp.net/jdanforth/archive/2009/04/27/restored-64-bit-windows-7-beta-from-windows-home-server-backup-on-a-dell-laptop.aspx</link><pubDate>Mon, 27 Apr 2009 08:25:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7060475</guid><dc:creator>jdanforth</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7060475</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/04/27/restored-64-bit-windows-7-beta-from-windows-home-server-backup-on-a-dell-laptop.aspx#comments</comments><description>&lt;p&gt;&lt;img title="Windows 7 Beta" border="0" alt="Windows 7 Beta" align="right" src="http://weblogs.asp.net/blogs/jdanforth/image_3D881299.png" width="244" height="154" /&gt;The HD of the new DELL Precision M4400 I have crashed, burned and died yesterday. I heard the screams 3 rooms away while drinking my morning coffee. It was horrific. &lt;/p&gt;  &lt;p&gt;Luckily it was powered on during the night, so the Windows Home Server (WHS) had a full backup. Had a few probs though:&lt;/p&gt;  &lt;p&gt;- the recovery cd didn’t have network drivers for my LAN card&lt;/p&gt;  &lt;p&gt;- the drivers stored in the special folder on the backup were 64-bit, which isn’t supported by the recovery cd (DUH!!)&lt;/p&gt;  &lt;p&gt;- had to download 32-bit drivers from DELL and put on USB drive&lt;/p&gt;  &lt;p&gt;Tip: make sure your c-drive matches the size of the backup, and create a “dummy” FAT recovery partition on your new HD which mimics the DELL RECOVERY partition. Also, make sure your USB drive is disconnected once you don’t need it anymore. Make sure it’s disconnected before you finish the backup. Also, eject the recovery cd when rebooting, just to be sure! I had to do the restore 3 times before it managed to make my c-drive bootable! Quite annoying…&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7060475" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Windows+Home+Server/default.aspx">Windows Home Server</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Windows+7/default.aspx">Windows 7</category></item><item><title>7-Zip on 64 Bit Windows 7 Beta</title><link>http://weblogs.asp.net/jdanforth/archive/2009/04/15/7-zip-on-64-bit-windows-7-beta.aspx</link><pubDate>Wed, 15 Apr 2009 17:26:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7047052</guid><dc:creator>jdanforth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7047052</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/04/15/7-zip-on-64-bit-windows-7-beta.aspx#comments</comments><description>&lt;p&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 5px; display: inline; border-top: 0px; border-right: 0px" title="7ziplogo" border="0" alt="7ziplogo" align="right" src="http://weblogs.asp.net/blogs/jdanforth/7ziplogo_6A1183D4.png" width="110" height="63" /&gt; I’m having problems in my 64 bit Windows 7 beta with the built in support for unzipping zip-files containing *lots* of files. It often hangs near the end and I have to reboot to sort things out.&lt;/p&gt;  &lt;p&gt;Downloaded &lt;a href="http://www.7-zip.org/" target="_blank"&gt;64 bit version of 7-Zip&lt;/a&gt; and it work fine – so far. You might want to try that one out if you have the same problems. Eventually it may also hang, but I’ll try it for a while and shout out if I notice any probs.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7047052" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Tools/default.aspx">Tools</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Windows+7/default.aspx">Windows 7</category></item><item><title>Writespace in Other Languages</title><link>http://weblogs.asp.net/jdanforth/archive/2009/04/05/writespace-in-other-languages.aspx</link><pubDate>Sun, 05 Apr 2009 17:29:24 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7026909</guid><dc:creator>jdanforth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7026909</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/04/05/writespace-in-other-languages.aspx#comments</comments><description>&lt;p&gt;&lt;img border="0" alt="Writespace" align="right" src="http://weblogs.asp.net/blogs/jdanforth/WindowsLiveWriter/WCFLearningsDrawingonMultipleMonitors_13EA4/Logo2_white_small_3.png" width="200" height="94" /&gt;Some time ago I noticed a peak in &lt;a href="http://writespace.codeplex.com/" target="_blank"&gt;Writespace&lt;/a&gt; downloads and I started to get some emails from people with requests for new features and stuff, which is fun. I saw from the stats that Lifehacker had a couple of articles on Writespace, as well as Danish PC-World, some Japanese site (I have no idea what the site is about :) and a few other places. &lt;/p&gt;  &lt;p&gt;I had no idea if Writespace actually worked in Japanese, but apparently it does!&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;table border="0" cellspacing="5" cellpadding="2" width="400"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="133"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Writespace on Lifehacker" border="0" alt="Writespace on Lifehacker" src="http://weblogs.asp.net/blogs/jdanforth/WriteSpace1_04006BC8.png" width="244" height="132" /&gt; &lt;/td&gt;        &lt;td valign="top" width="133"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Writespace in Danish" border="0" alt="Writespace in Danish" src="http://weblogs.asp.net/blogs/jdanforth/getfile_375C2F24.jpg" width="244" height="159" /&gt; &lt;/td&gt;        &lt;td valign="top" width="133"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="133"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Writespace in Japanese" border="0" alt="Writespace in Japanese" src="http://weblogs.asp.net/blogs/jdanforth/writespacejp_6083C762.png" width="244" height="138" /&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="133"&gt;&lt;a href="http://lifehacker.com/5164895/writespace-turns-word-into-a-distraction%20free-editor" target="_blank"&gt;Lifehacker.com&lt;/a&gt;&lt;/td&gt;        &lt;td valign="top" width="133"&gt;&lt;a href="http://www.pcworld.dk/art/10772?page=1" target="_blank"&gt;Pcworld.dk&lt;/a&gt;&lt;/td&gt;        &lt;td valign="top" width="133"&gt;&lt;a href="http://www.pcworld.dk/art/10772?page=1" target="_blank"&gt;&lt;/a&gt;&lt;/td&gt;        &lt;td valign="top" width="133"&gt;&lt;a href="http://www.moongift.jp/2009/03/writespace/" target="_blank"&gt;Moongift.jp&lt;/a&gt;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;If I get some time for it I’ll release a Word 2003 version and add a few of the requested new features.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7026909" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Other/default.aspx">Other</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Writespace/default.aspx">Writespace</category></item><item><title>Fill a Select/Option from Json with jQuery</title><link>http://weblogs.asp.net/jdanforth/archive/2009/04/03/fill-a-select-option-from-json-with-jquery.aspx</link><pubDate>Fri, 03 Apr 2009 12:19:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7024178</guid><dc:creator>jdanforth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7024178</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/04/03/fill-a-select-option-from-json-with-jquery.aspx#comments</comments><description>&lt;p&gt;&lt;img title="aspnet" border="0" alt="aspnet" align="right" src="http://weblogs.asp.net/blogs/jdanforth/aspnet_4860990D.jpg" width="380" height="76" /&gt;More jQuery and Json…&lt;/p&gt;  &lt;p&gt;To fill a listbox (select) with items from a Json call.&lt;/p&gt;  &lt;p&gt;I got this helper class to handle the options/items:&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;public class &lt;/span&gt;&lt;span style="color: #2b91af"&gt;SelectOption
&lt;/span&gt;{
    &lt;span style="color: blue"&gt;public &lt;/span&gt;&lt;span style="color: #2b91af"&gt;String &lt;/span&gt;Value { &lt;span style="color: blue"&gt;get&lt;/span&gt;; &lt;span style="color: blue"&gt;set&lt;/span&gt;; }
    &lt;span style="color: blue"&gt;public &lt;/span&gt;&lt;span style="color: #2b91af"&gt;String &lt;/span&gt;Text { &lt;span style="color: blue"&gt;get&lt;/span&gt;; &lt;span style="color: blue"&gt;set&lt;/span&gt;; }
}&lt;/pre&gt;

&lt;p&gt;A sample action/method in ASP.NET MVC that returns Json:&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;public &lt;/span&gt;&lt;span style="color: #2b91af"&gt;JsonResult &lt;/span&gt;GetJson()
{
    &lt;span style="color: blue"&gt;var &lt;/span&gt;list = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;SelectOption&lt;/span&gt;&amp;gt;
                   {
                       &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;SelectOption &lt;/span&gt;{ Value = &lt;span style="color: #a31515"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;, Text = &lt;span style="color: #a31515"&gt;&amp;quot;Aron&amp;quot; &lt;/span&gt;},
                       &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;SelectOption &lt;/span&gt;{ Value = &lt;span style="color: #a31515"&gt;&amp;quot;2&amp;quot;&lt;/span&gt;, Text = &lt;span style="color: #a31515"&gt;&amp;quot;Bob&amp;quot; &lt;/span&gt;},
                       &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;SelectOption &lt;/span&gt;{ Value = &lt;span style="color: #a31515"&gt;&amp;quot;3&amp;quot;&lt;/span&gt;, Text = &lt;span style="color: #a31515"&gt;&amp;quot;Charlie&amp;quot; &lt;/span&gt;},
                       &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;SelectOption &lt;/span&gt;{ Value = &lt;span style="color: #a31515"&gt;&amp;quot;4&amp;quot;&lt;/span&gt;, Text = &lt;span style="color: #a31515"&gt;&amp;quot;David&amp;quot; &lt;/span&gt;}
                   };
    &lt;span style="color: blue"&gt;return &lt;/span&gt;Json(list);
}&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;Some HTML and jQuery to fill the list at page load:&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;
&lt;/span&gt;    &lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;select &lt;/span&gt;&lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;MyList&amp;quot; /&amp;gt;
&lt;/span&gt;&lt;span style="color: blue"&gt;
    &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;script &lt;/span&gt;&lt;span style="color: red"&gt;type&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;text/javascript&amp;quot;&amp;gt;

        &lt;/span&gt;$(document).ready(&lt;span style="color: blue"&gt;function&lt;/span&gt;() {
            $.getJSON(&lt;span style="color: #a31515"&gt;&amp;quot;/Json/GetJson&amp;quot;&lt;/span&gt;, &lt;span style="color: blue"&gt;null&lt;/span&gt;, &lt;span style="color: blue"&gt;function&lt;/span&gt;(data) {
                $(&lt;span style="color: #a31515"&gt;&amp;quot;#MyList&amp;quot;&lt;/span&gt;).addItems(data);
            });
        });

        $.fn.addItems = &lt;span style="color: blue"&gt;function&lt;/span&gt;(data) {
            &lt;span style="color: blue"&gt;return this&lt;/span&gt;.each(&lt;span style="color: blue"&gt;function&lt;/span&gt;() {
                &lt;span style="color: blue"&gt;var &lt;/span&gt;list = &lt;span style="color: blue"&gt;this&lt;/span&gt;;
                $.each(data, &lt;span style="color: blue"&gt;function&lt;/span&gt;(index, itemData) {
                    &lt;span style="color: blue"&gt;var &lt;/span&gt;option = &lt;span style="color: blue"&gt;new &lt;/span&gt;Option(itemData.Text, itemData.Value);
                    list.add(option);
                });
            });
        };

        $(&lt;span style="color: #a31515"&gt;&amp;quot;#MyList&amp;quot;&lt;/span&gt;).change(&lt;span style="color: blue"&gt;function&lt;/span&gt;() {
            alert(&lt;span style="color: #a31515"&gt;'you selected ' &lt;/span&gt;+ $(&lt;span style="color: blue"&gt;this&lt;/span&gt;).val());
        });

    &lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;script&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7024178" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/ASP.NET+MVC/default.aspx">ASP.NET MVC</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Json/default.aspx">Json</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/jQuery/default.aspx">jQuery</category></item><item><title>Json, jQuery and ASP.NET MVC</title><link>http://weblogs.asp.net/jdanforth/archive/2009/04/03/json-jquery-and-asp-net-mvc.aspx</link><pubDate>Fri, 03 Apr 2009 12:01:20 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7024167</guid><dc:creator>jdanforth</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jdanforth/rsscomments.aspx?PostID=7024167</wfw:commentRss><comments>http://weblogs.asp.net/jdanforth/archive/2009/04/03/json-jquery-and-asp-net-mvc.aspx#comments</comments><description>&lt;p&gt;&lt;img title="aspnet" border="0" alt="aspnet" align="right" src="http://weblogs.asp.net/blogs/jdanforth/aspnet_4860990D.jpg" width="380" height="76" /&gt;I’m stacking a few things here related to Json, jQuery and ASP.NET MVC so that I can get to them later on.&lt;/p&gt;  &lt;p&gt;JQuery to grab some Json when a web page is loaded:&lt;/p&gt;  &lt;pre class="code"&gt;$(document).ready(&lt;span style="color: blue"&gt;function&lt;/span&gt;() {
    $.getJSON(&lt;span style="color: #a31515"&gt;&amp;quot;/MyController/MyJsonAction&amp;quot;&lt;/span&gt;, &lt;span style="color: blue"&gt;null&lt;/span&gt;, &lt;span style="color: blue"&gt;function&lt;/span&gt;(data) {&lt;br /&gt;        &lt;span style="color: green"&gt;//do stuff with data here&lt;br /&gt;&lt;/span&gt;    });
});&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;The smallish code in the ASP.NET MVC controller:&lt;/p&gt;

&lt;div style="font-family: consolas; background: white; color: black; font-size: 10pt"&gt;
  &lt;div style="font-family: consolas; background: white; color: black; font-size: 10pt"&gt;
    &lt;p style="margin: 0px"&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: #2b91af"&gt;JsonResult&lt;/span&gt; GetJson()&lt;/p&gt;

    &lt;p style="margin: 0px"&gt;{&lt;/p&gt;

    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;return&lt;/span&gt; Json(GetList());&lt;/p&gt;

    &lt;p style="margin: 0px"&gt;}&lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;It’s possible to use anonymous types with Json() as well, which is very useful but may be harder to unit test.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7024167" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jdanforth/archive/tags/ASP.NET+MVC/default.aspx">ASP.NET MVC</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/Json/default.aspx">Json</category><category domain="http://weblogs.asp.net/jdanforth/archive/tags/jQuery/default.aspx">jQuery</category></item></channel></rss>