Home > Microsoft .Net Development Tips > ASP.NET Development > Learning .NET: Get started with ASP.NET AJAX development, Part 2
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ASP.NET DEVELOPMENT

Learning .NET: Get started with ASP.NET AJAX development, Part 2


Brian Eastwood, Site Editor
01.12.2007
Rating: --- (out of 5)


.NET Essentials Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Back in August 2006, SearchVB.com published Learning .NET: Get started with ASP.NET AJAX development, a roundup of tutorials, tips and best practices for using the technology. Quite a bit has changed since then -- Atlas is now called ASP.NET AJAX and, more importantly, is available as a release candidate. With that in mind, we decided to revisit the topic and provide a new list of resources. As always, if there are any additional resources that you have found helpful, drop us a line and we will add them to the list.

General tips

At press time Atlas is available as a release candidate and available as a free download at The Official ASP.NET AJAX Site. Scott Guthrie, head of Microsoft's ASP.NET development group, talks about changes to the framework between Beta 2 and Release Candidate 1 in the blog entry ASP.NET AJAX 1.0 Release Candidate Now Available. For developers already hard at work with the framework, Microsoft has published a migration guide for converting apps from ASP.NET AJAX Beta 2 to RC 1.

Those industrious developers may have noticed a somewhat frustrating lack of functionality in ASP.NET AJAX -- the loss of IntelliSense, which provides for tag completion and other hard-coding time savers. "Unfortunately we discovered a bug with the VS markup IntelliSense engine when doing the ASP.NET AJAX Beta1 release," Guthrie writes in Gotcha: Lost HTML IntelliSense within ASP.NET AJAX Controls. "[Y]ou lose IntelliSense when you map multiple assemblies against the tag prefix and use the controls within a control in a .aspx page based on a master page."

This glitch is fixed in Visual Studio 2005 Service Pack 1, available for download at the VS 2005 SP1 developer center. For those not using the service pack, there are two workarounds, Guthrie said -- keeping your master file open or change the tag-prefix naming for the ASP.NET AJAX controls.

UpdatePanel Tips

The UpdatePanel class enables the partial rendering of part of a Web application without a call back to the server; it is arguably the backbone to Ajax development. One drawback to UpdatePanel, though, is that it essentially breaks the browser's Back button and its history of previously visited URLs.

To remedy this, Nikhil Kothari, also a member of the ASP.NET development team, has developed a server control that implements the Back button and bookmarking functionality in pages that use UpdatePanel. More information is available in Kothari's blog entry, Back Button Support for Atlas UpdatePanels.

Another consideration when working with the UpdatePanel class is how it sends control messages to and from the server. In older versions of ASP.NET AJAX, the class used XML; now, said Dan Wahlin, an ASP.NET and XML Web Services MVP, "it uses a pipe-delimited approach to the response message." Learn more in Wahlin's blog entry, ASP.NET AJAX UpdatePanel Messages.

On top of that, developers must consider what happens when a call back does not work. As with control messages, this feature has changed as ASP.NET AJAX has evolved. In a blog entry called UpdatePanel: having fun with errors, C# MVP Luis Abreu demonstrates how to create error messages useful to both developers and end users.

ASP.NET AJAX Controls

If you are in the market for sample Ajax controls, then the ASP.NET AJAX Control Toolkit is a good place to start. The toolkit offers 28 free add-ins, ranging, alphabetically, from an according control to a validator callback.

Many developers have created their own controls. A few were mentioned in our previous Getting started with Atlas development tip. Others that have emerged since then include an ASP.NET AJAX RSS Reader, an Atlas TabStrip available here and here, and an Atlas Tab Strip with Asynchronous Callback.

Tutorials

One of the most comprehensive set of resources is our own ASP.NET AJAX Learning Guide, which links to a plethora of tips, tutorials and how-to videos. Other recently published resources include the following:

  • Simplify Task Progress with ASP.NET AJAX: This MSDN article by Dino Esposito covers the remote callback feature in Atlas and talks about how to add triggers, progress bard and an UpdatePanel to an ASP.NET AJAX application.
  • ASP.NET AJAX under the hood secrets: This Code Project article by Omar Al Zabir, the founder of PageFlakes, talks about the server call, batch requests, cache options and other back-end Atlas programming.
  • Client-Side Web Service Calls with AJAX Extensions: This MSDN article by Fritz Onion lives up to its title, offering details on using Ajax to call Web services and using JSON, or JavaScript Object Notation, for serialization. JSON, a subset of JavaScript better suited for consumption in a browser, is the default serializer in ASP.NET AJAX.
  • Microsoft Ajax Library Cheat Sheets: Milan Negoran has posted on his blog "cheat sheets" for working with the following JavaScript base type extensions: Array, Boolean, Date, Error, Number, Object and String.

Videos

Some folks are visual learners. Others learn best when they hear instructions. Video tutorials, then, offer the best of both worlds -- and there is no shortage of ASP.NET AJAX videos on the Web.

Guthrie links to several videos in the blog post Great New Atlas Videos Published (All Free). The list includes introductory videos for ASP.NET AJAX and its companion Control Toolkit and offers more in-depth discussions of several specific controls. Additional videos are available atThe Official Microsoft ASP.NET 2.0 Site.

Finally, Wahlin has posted three videos on his blog. The most recent, Viewing Albums with WPF/E and ASP.NET AJAX, shows how to build an application in which users type in the name of a recording artist and browse through 3D search results. The other videos, Debugging ASP.NET AJAX Applications with VS.NET 2005 and Calling Web Services using ASP.NET AJAX and JavaScript, possess rather self-explanatory titles.

Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
ASP.NET Development
Dundas Map for .NET kicks up geographic visualization
Return to CodePlex: Into the Sandcastle…
VBScript Tutorial
Use PHP with Visual Studio to create Web sites
Visual Studio Team System Add-ins: Conchango Scrum for Team System and Scrum Dashboard
Visual Studio 2008 and .NET Framework 3.5 SP1 introduces ADO .NET Entity Designer
XAML as an everywhere presentation format
Introduction to Silverlight 1.0: Building your first Silverlight application
Creating custom ASP.NET 2.0 profile providers
Book excerpt: Silverlight 1.0 explained

ASP.NET and Ajax development
VBScript Tutorial
Ajax Learning Guide
Mainsoft introduces .NET-to-Java translation tool
Ajax.NET Professional retired
Visual Studio 2008 Learning Guide: JavaScript IntelliSense
Five common Ajax security challenges and how to address them
On ASP.NET AJAX testing and debugging tools
JSON (Javascript Object Notation)
Gaia Ajax Widgets adds controls, documentation
The Ajax Experience: Explore Ajax in its many forms

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Ajax  (SearchWinDevelopment.com)
Atlas  (SearchWinDevelopment.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts