in

ASP.NET Weblogs

This Blog

Syndication

ASP.NET AJAX Team Blogs

  • Yellowstone National Park Photo Trip

    Photos from a photo trip to Yellowstone and Grand Tetons National Park... [ Full post continued here... ] Read More...
  • Why is ASP.NET encoding &’s in script URLs? A tale of looking at entirely the wrong place for a cause to a non-existing bug.

    Several people have reported seeing errors in their logs that seem to be due to requests such as this: /ScriptResource.axd?d= [lots of junk] & t=ffffffffee24147c The important part here is the HTML-encoded “&” sequence, which stands for “&” of course. If this exact URL is sent to the server, the server won’t know what to do with the escape sequence (URLs are not supposed to be HTML-encoded on the wire) so the parameters won’t get separated as expected, potentially resulting in a server error. This bug in the toolkit is an example of that: http://ajaxcontroltoolkit.codeplex.com/WorkItem/View.aspx?WorkItemId=13134 Of course, when people see 500 errors popping up in their server logs, they immediately assume the application...
  • May 30th Links: ASP.NET, AJAX, ASP.NET MVC, Visual Studio

    Here is the latest in my link-listing series .  Also check out my ASP.NET Tips, Tricks and Tutorials page and Silverlight Tutorials page for links to popular articles I've done myself in the past.  You can also now follow me on twitter ( @realscottgu ) where I also post links and small posts. ASP.NET Using ASP.NET 3.5’s ListView and DataPager Controls to Delete Data : Scott Mitchell continues his excellent tutorial series on the ASP.NET ListView control. In this article he discusses how to handle deleting data with it. ASP.NET ListView: Displaying Hierarchical Data : Adam Pooler writes about how to use the ASP.NET ListView control to display hierarchical data within a web page. ELMAH: Error Logging Module and Handlers for ASP.NET...
  • ViewModel with MVC/Navigation in Silverlight

    I've been writing about ViewModel (aka MVVM) pattern ( here , here , here and more) and implementing it in Silverlight.FX for quite some time now, and it continues to be an exciting area for further thinking, and prototyping. This time around I want to cover how ViewModel and MVC fit together in an application at the same time. I have put together a set of navigation features into Silverlight.FX: a Page base class, a PageFrame control, and a Navigate trigger action. The PageFrame class by default maps URIs to Page types automatically, but at the same time supports plugging in an MVC PageLoader that maps URIs to Controllers and Actions, and maps ActionResults resulting from those actions into visuals or Pages. Specifically the controller...
  • Survey: Ajax usage among .NET developers in 2009

    A couple of years ago Simone Chiaretta did a survey of .NET Developers usage of Ajax ..   I just saw that he is refreshing that survey to see what has changed in the industry.  Are people still actively moving to Ajax?  Are they using MVC or WebForms with their Ajax?  Which ones of the *many* ajax frameworks out there are they using?  Feel free to write-in Silverlight if that is your current preference for this style of application.  Very interesting data… and while clearly not a scientific survey, it is an interesting data point as Simone has agreed to publish all the data he gets.   Here is what he has so far . So please take a few minutes and fill out the survey and pass it on to your colleagues...
  • Survey: Ajax usage among .NET developers

    If you haven’t already and you are a .NET developer, please take a couple minutes and answer this survey, whether you use Ajax or not. There are a number of Ajax surveys around, but Simone’s is the only one that focuses on .NET developers. The survey: http://www.zoomerang.com/Survey/?p=WEB22973CYKW2H Simone’s post: http://codeclimber.net.nz/archive/2009/05/21/ajax-usage-among-.net-developers-in-2009.aspx Read More...
  • setInterval is (moderately) evil

    JavaScript has two ways of delaying execution of code: setInterval and setTimeout . Both take a function or a string as the first parameter, and a number of milliseconds as the second parameter. The only difference is that the code provided to setInterval will run every n milliseconds whereas the code in setTimeout will run only once. Before I explain why I think setInterval is evil, allow me to rant on a related subject for a paragraph: you should never pass a string into any of those functions and instead always pass a function reference (unless you really, really know what you’re doing). If you pass a string, it will have to be evaluated on the fly, and eval is quite evil itself (unless you really, really know what you’re doing). It might...
  • New release of the Ajax Control Toolkit

    A new version of the AJAX Control Toolkit is now available for download from the CodePlex website. It contains three new controls: HTMLEditor - allows you to easily create and edit HTML content. You can edit in WYSIWYG mode or in HTML source mode. The control exists as a server-side extender but can also be instantiated purely on the client-side with a single line of code. Many thanks to Obout for building this. ComboBox - provides a DropDownList of items, combined with TextBox. Different modes determine the interplay between the text entry and the list of items. this control behaves very much like a Windows combo. Many thanks to Dan Ludwig for building this. ColorPicker - can be attached to any ASP.NET TextBox control to provide client-side...
  • ViewModel + .NET RIA Services Part 2: Testability, Server Mocking and Dependencies

    In Part 1 of ViewModel and .NET RIA Services , which I recommend you check out first if you haven't, I created a simple product search UI using Silverlight and .NET RIA Services using the ViewModel (aka MVVM) pattern. One of benefits of the ViewModel pattern is that it creates a nice contract between the view and associated logic, i.e. a contract between the designer and the developer. Another key benefit of the ViewModel pattern is that it furthers testability - more of your presentation tier is now unit testable. This post touches on that second benefit. In doing so, it will allow me to go into a couple of other related topics: First, this application uses .NET RIA Services . This post will demonstrate how you can mock out the server when...
  • jQuery & MicrosoftAjax “happy together”

    NOTE: This was cross posted from here . I’ve been using jQuery quite a bit lately.  I’ve grown very fond of it.  At the same time, I have been digging into ASP.NET AJAX 4.0.  I just read a post from Bertand Le Roy that made me smile.  In his post, he shows how you can do the following: < ul class ="dv" > < li > {{ $dataItem }} </ li > </ ul > < script type ="text/javascript" > 1: $( ".dv" ).dataView({ data: [ "foo" , "bar" , "baz" ] }); </ script > To me, being able to instantiate a DataView control using the jQuery plugin syntax is PRETTY COOL!  Check out the details of how all this works and download the sample at: http...
More Posts Next page »