Explore Ways to Extend ASP.NET AJAX Client-Side Function
page 4 of 9
by Xianzhong Zhu
Feedback
Average Rating: 
Views (Total / Last 10 Days): 15298/ 290

The Behavior Way

Beyond simple data access and updates, presentation layers generally present some more sophisticated user interfaces, intended to ease a user’s workflow. One of the technologies to this end offered by MS AJAX is behaviors. In fact, these behaviors are similar to DHTML behaviors, but they are greatly improved because they are not limited to Internet Explorer. Built using standard JavaScript, they work on all mainstream browsers. An MS AJAX behavior attaches itself to DHTML elements using controls and dynamically changes the behavior of the control based on this attachment.

For example, if you want to add drag-and-drop functionality to a control, you can do this by attaching the appropriate behavior. Other typical GUI enhancements such as tooltips, floating windows, and some animations and visual effects can also be implemented as MS AJAX behaviors.

In the next section we will show you how to create a custom behavior named MyHoverBehavior.


View Entire Article

User Comments

No comments posted yet.






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 7/4/2008 6:18:56 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search