<?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 : jQuery</title><link>http://blogs.msdn.com/tom/archive/tags/jQuery/default.aspx</link><description>Tags: jQuery</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><item><title>ASP.NET Troubleshooting</title><link>http://blogs.msdn.com/tom/archive/2009/03/24/asp-net-troubleshooting.aspx</link><pubDate>Tue, 24 Mar 2009 19:31:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9504630</guid><dc:creator>Tom</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/tom/comments/9504630.aspx</comments><wfw:commentRss>http://blogs.msdn.com/tom/commentrss.aspx?PostID=9504630</wfw:commentRss><wfw:comment>http://blogs.msdn.com/tom/rsscomments.aspx?PostID=9504630</wfw:comment><description>&lt;p&gt;So with how long ASP.NET has been out for now, I am really curious to know how people go about tracking down issues in their project.&lt;/p&gt;  &lt;p&gt;I’d like to know things like:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;How do you know there is a problem&lt;/li&gt;    &lt;li&gt;What tools do you use to confirm that the problem really is a problem&lt;/li&gt;    &lt;li&gt;How do you gather data about the problem&lt;/li&gt;    &lt;li&gt;How do you determine if the problem is your code or something else (like the network, hard drive failure, etc)&lt;/li&gt;    &lt;li&gt;If the problem is your code, how do you ensure your fix resolves the problem (how do you test the fix)&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;If there are any others, I’d also like to hear them.&lt;/p&gt;  &lt;p&gt;Also, if you do anything in the Cloud now, I’d love to hear how you troubleshoot that.&amp;#160; And it can be from any cloud service provider.&lt;/p&gt;  &lt;p&gt;And have any of these things changed with some of the new ways to program that have come out.&amp;#160; For example, AJAX, MVC, Silverlight, IE8, jQuery, etc.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9504630" 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/Debugging/default.aspx">Debugging</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/IE8/default.aspx">IE8</category><category domain="http://blogs.msdn.com/tom/archive/tags/MVC/default.aspx">MVC</category><category domain="http://blogs.msdn.com/tom/archive/tags/ADO.NET/default.aspx">ADO.NET</category><category domain="http://blogs.msdn.com/tom/archive/tags/Linq/default.aspx">Linq</category><category domain="http://blogs.msdn.com/tom/archive/tags/jQuery/default.aspx">jQuery</category></item><item><title>IntelliSense for jQuery</title><link>http://blogs.msdn.com/tom/archive/2008/10/30/intellisense-for-jquery.aspx</link><pubDate>Thu, 30 Oct 2008 18:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9022416</guid><dc:creator>Tom</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/tom/comments/9022416.aspx</comments><wfw:commentRss>http://blogs.msdn.com/tom/commentrss.aspx?PostID=9022416</wfw:commentRss><wfw:comment>http://blogs.msdn.com/tom/rsscomments.aspx?PostID=9022416</wfw:comment><description>&lt;p&gt;As for reported &lt;a href="http://blogs.msdn.com/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx"&gt;here&lt;/a&gt;, we now have an official IntelliSense documentation file that will allow you to get rich intellisense for jQuery from inside of Visual Studio.&lt;/p&gt;  &lt;p&gt;When you go to download jQuery, you will see a Documentation link.&amp;#160; Or you can download it directly from here:    &lt;br /&gt;&lt;a title="jquery-1.2.6-vsdoc.js" href="http://code.jquery.com/jquery-1.2.6-vsdoc.js"&gt;http://code.jquery.com/jquery-1.2.6-vsdoc.js&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Using this file is simple, if you are inside an ASPX page, you can reference it like this:&lt;/p&gt;  &lt;pre class="code"&gt;&amp;lt;script src=&amp;quot;jquery-1.2.6.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;% if (false) { %&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;script src=&amp;quot;jquery-1.2.6-vsdoc.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;% } %&amp;gt;&lt;/pre&gt;

&lt;p&gt;The &lt;strong&gt;if (false)&lt;/strong&gt; part will make sure we don’t render or execute this as a script but it will get loaded by IntelliSense.&lt;/p&gt;

&lt;p&gt;If you are inside a javascript file, you can reference it in the normal way like:&lt;/p&gt;

&lt;pre class="code"&gt;/// &amp;lt;reference path=&amp;quot;jquery-1.2.6-vsdoc.js&amp;quot; /&amp;gt;&lt;/pre&gt;

&lt;p&gt;This also supports plug-ins.&amp;#160; So you will get IntelliSense on the as well.&amp;#160; Hope that those of you using jQuery can put this file to good use.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9022416" 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/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/tom/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/tom/archive/tags/jQuery/default.aspx">jQuery</category></item></channel></rss>