180 likes | 315 Views
Choosing between Silverlight and AJAX. Ranjith Pallath Partner Technical Consultant | Microsoft Corporation | rapallat@microsoft.com. AGENDA. AJAX and Silverlight Rich Vs Reach Pros and Cons of AJAX Scenarios for using AJAX Pros and Cons of Silverlight
E N D
Choosing betweenSilverlight and AJAX Ranjith Pallath Partner Technical Consultant | Microsoft Corporation | rapallat@microsoft.com
AGENDA • AJAX and Silverlight • Rich Vs Reach • Pros and Cons of AJAX • Scenarios for using AJAX • Pros and Cons of Silverlight • Scenarios for using Silverlight • Silverlight and AJAX
AJAX and Silverlight • Both are client technologies bur are not replacement for each other. • Silverlight is mainly used for rich UI. • Technology Specification / Technology • ASP. Net Ajax provides both pure client APIs and server tools like (Update Panel), With Silverlight you can have server integration by using the web services. • ASP. Net Ajax works on JSON platform based on JavaScript and Xml. Silverlight is like a browser add-on that can understand XMAL code used by Silverlight. • Use silverlight when you need rich UI and don't have heavy server dependency. Ajax can be used to make web applications perform better.
Pros and Cons of AJAX Advantages • Works on top of existing ASP. Net pages • Easy implementation • Better response time for pages • Matured (Over 4 years) Disadvantages • JavaScript is very limiting • UI Enhancement is limited to asynchronous postback and DHTML • Dependent in browser capability
Scenarios for using AJAX • High dependency on Server • Eradicate User experience challenges • Little emphasis on User Interface • Tight coupling with ASP. Net • Client side logics implemented in JavaScript
DEMO Creating AJAX Application
Pros and Cons of Silverlight Advantages • Rich User Interface (Media, Animation) • Managed Code • Multiple Device, Browser, Platform • WPF Association Disadvantages • Plug-in architecture • Learning curve • Platform support
Scenarios for using Silverlight • Importance on User Interface • Creating Media Oriented Applications (Audio, Video, Animation) • Client side logic in Managed Language • Fairly disconnected model • Multiple platform, multiple device, multiple browser support • Vector Graphics
DEMO Creating Silverlight Application
Silverlight and AJAX • Silverlight 1.0 was all JavaScript and AJAX • HTML Bridge • <asp:MediaElement> and <asp:Silverlight> server controls
DEMO Album Viewer Application
References • Silverlight Resources http://silverlight.net/GetStarted/ http://silverlight.net/Learn/ http://silverlight.net/blogs/jesseliberty/http://weblogs.asp.net/scottgu • AJAX Resources http://www.asp.net/ajax/ http://weblogs.asp.net/atlas-team/default.aspx
Feedback / QnA • Your Feedback is Important! Please take a few moments to fill out our online feedback form • Use the Question Manager on LiveMeeting to ask your questions now!