<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>ASP.NET Debugging : JSON</title><link>http://blogs.msdn.com/tom/archive/tags/JSON/default.aspx</link><description>Tags: JSON</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>ASP.NET MVC and JSON and when do you use Async</title><link>http://blogs.msdn.com/tom/archive/2009/04/03/asp-net-mvc-and-json-and-when-do-you-use-async.aspx</link><pubDate>Fri, 03 Apr 2009 13:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9528356</guid><dc:creator>Tom</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/tom/comments/9528356.aspx</comments><wfw:commentRss>http://blogs.msdn.com/tom/commentrss.aspx?PostID=9528356</wfw:commentRss><wfw:comment>http://blogs.msdn.com/tom/rsscomments.aspx?PostID=9528356</wfw:comment><description>&lt;p&gt;I wanted to post somewhat of a discussion starter around some of the new technologies that ASP.NET has recently released. &lt;/p&gt;  &lt;h3&gt;ASP.NET MVC&lt;/h3&gt;  &lt;p&gt;This technology has one huge benefit of allowing you to do unit testing on your site.&amp;#160; But there are also a number of other advantages to it, for example, you can have a web page call commands inside a controller.&amp;#160; This allows multiple pages to call the same command which helps keep things clean.&amp;#160; It also does a pretty good job of separating the code from the presentation layer.&amp;#160; But I did find myself doing a lot of coding like I used to with classic ASP or even IDC where we loop through results and have &amp;lt;%= %&amp;gt; snippets all over the aspx page.&lt;/p&gt;  &lt;h3&gt;JSON/AJAX&lt;/h3&gt;  &lt;p&gt;These technologies have really opened the door to a lot more asynchronous commands on the web.&amp;#160; They allow you to do lots of small submissions and updates without the need to submit and refresh the whole page.&lt;/p&gt;  &lt;h3&gt;jQuery&lt;/h3&gt;  &lt;p&gt;This is a really interesting new functionality in that it really isn’t anything new but just a way of collecting things in a cleaner way.&amp;#160; The way it is designed really gives us an ability to do things that you generally don’t consider doing.&amp;#160; For example, you can make images clickable without having any link code in the html.&amp;#160; It can also give some interesting ways to hide some of your IP (although they can always see it using something like netmon).&lt;/p&gt;  &lt;h3&gt;Silverlight&lt;/h3&gt;  &lt;p&gt;I think with Silverlight 3, we have really raised the bar for making Silverlight a choice for developing an application.&amp;#160; Especially if you combine it with RIA, there are a lot of great applications of Silverlight that before would be much harder to create.&amp;#160; I know Silverlight 3 is just in developer beta, but I have been using it quite a bit lately and I think it is really going to change things.&amp;#160; The deep linking and search engine optimization functionality really help make this a good solution as well.&lt;/p&gt;  &lt;h3&gt;So when would you use which?&lt;/h3&gt;  &lt;p&gt;That is what I’d like to hear from everyone.&amp;#160; If you have a page, when do you decide that you should do something async?&amp;#160; When do you decide that you should just submit the entire page?&amp;#160; Have you considered using Silverlight yet?&amp;#160; What functionality makes it attractive to you?&amp;#160; Is it the off-line functionality?&lt;/p&gt;  &lt;h3&gt;My take&lt;/h3&gt;  &lt;p&gt;I wanted to give some of my thoughts on these things, but remember that they are just thoughts as a lot of these technologies I haven’t used enough to know which is best for what situation.&lt;/p&gt;  &lt;p&gt;I think that most of these technologies allow for very fast creation of a site.&amp;#160; I think a lot of it boils down to what you are comfortable with or what you have available.&amp;#160; If you have designers at your disposal, Silverlight is a great choice as they can create the Xaml to make your application look amazing.&lt;/p&gt;  &lt;p&gt;I think one of the powerful things about MVC is that you can combine it with AJAX, jQuery, JSON to get a bunch of these things in the same application.&amp;#160; But it still is a question as to when to use what.&amp;#160; For me, I really like using jQuery to control the UI and then have it call commands through AJAX/JSON.&amp;#160; It also allows you to update a page with new content without having to refresh the page.&amp;#160; Which makes the user experience a lot cleaner.&lt;/p&gt;  &lt;p&gt;As for Silverlight, in general I think it is a wildcard out of the bunch.&amp;#160; You can do all the same things you can with these other technologies but within the same framework.&amp;#160; So I think if you want to have the best of all worlds and learn the smallest amount, this may be a good way to go.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;So what are your thoughts?&amp;#160; And do you have any other functionality that you would like that see that isn’t available yet?&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9528356" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/tom/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/tom/archive/tags/AJAX/default.aspx">AJAX</category><category domain="http://blogs.msdn.com/tom/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/tom/archive/tags/Silverlight/default.aspx">Silverlight</category><category domain="http://blogs.msdn.com/tom/archive/tags/MVC/default.aspx">MVC</category><category domain="http://blogs.msdn.com/tom/archive/tags/jQuery/default.aspx">jQuery</category><category domain="http://blogs.msdn.com/tom/archive/tags/RIA/default.aspx">RIA</category><category domain="http://blogs.msdn.com/tom/archive/tags/JSON/default.aspx">JSON</category></item></channel></rss>