Monday, February 16, 2009

Silverlight for ASP.NET Developers

After reading my first blog, I am pretty sure you will definitely want to know more about Silverlight. Here are few more things you may interest in, if you are looking forward to work with Microsoft Silverlight. If you are thinking to work with Silverlight then the probability is very high that you worked with ASP.NET. Here we have something that will be helpful to all ASP.NET developers, who are still in confusion.

Are you an ASP.net developer?????

You can create good-looking and robust application using ASP.net that may scale to enormous numbers of users considering good design time. But creating something more than just a functional user interface, something that really excites and drives the user, something that leaps out and wows the user, has always been an uphill struggle because a standard web application cannot take advantage of the client’s processing power to support a rich and powerful UI. You can combine HTML and JavaScript to achieve great results, but it will cost you good time and you also need to manage large scripts written to achieve these results. To run these scripts cross-browser and cross-platform is even more difficult. Finally all these results in thousands of lines of JavaScript code, which ends in real nightmare.

How Silverlight can help?????

Silverlight is all about delivering next-generation media experiences and Rich Internet Application (RIA) that has rich, desktop like functionality via the Web. It allows you to easily add video, animation, and improved interactivity to your web sites. Web application acts like a fat client application. We were using AJAX to provide this functionality, but now Silverlight makes it easy and quick regardless of browser you are using and operating system you are using. Silverlight is built upon existing technologies, so any developer having .NET background should feel somewhat familiar and if developer worked with .net framework 3.0 and 3.5 then it will be more familiar. Silverlight also use Visual Studio as default development environment (IDE).

All that is required to run Silverlight in your browser is the Silverlight plug-in, which is completely free download, and takes few seconds to intall it. If user don't have this plugin installed and navigate to a page hosting a Silverlight Application, they will be automatically prompted to install it.

Silverlight2 include:

  • Cross-Platform / Cross Browser Support
  • Streaming media

  • JavaScript Extensions

  • Digital Rights Management(DRM) of media files.

  • WPF-Like Graphics (Subset of WPF controls)

  • .NET Framework (Based on Subset of .NET framework)

  • Rich Control Library

  • Dynamic Language Runtime (DLR: Support for dynamic languages like Ruby and Python)

  • Language Integrated Query (LINQ: use native syntax and strongly typed objects to program data access)

  • Asynchronous update (No need to refresh page)

  • Communication (Via XML Web Services, WCF Services, REST, and ADO.NET Data Services)

  • HTML/Managed Code Bridge (bridge between HTML and Managed Code)

  • Mobile Support (Support for Windows mobie and Nokia S60 devices)

What you should still do in ASP.NET?????

Silverlight provides lots of new functionality with RIA, but this doesnt meant that now onwards ASP.NET will only be used as a container for Silverlight Application. There are some things that you should still need to do in ASP.NET.

  • Security Consciousness (Silverlight runs on client machine, which is not a safe place for sensitive data)

  • Architectural Awareness (data access code and similar code in ASP.NET and provide access points for Silverlight.)

  • Environmental Concerns (Silverlight plugin may not be allowed in all environments, it may against someone's policy)

  • Ease of Development (few things like validation controls for data entry are easy to include in ASP.NET)

Development Environment Overview

It is very easy to setup an environment to develop Silverlight application.

  • Visual Studio 2008

  • Silverlight Tools for Visual Studio 2008

  • Microsoft Expression Blend (Optional but very handy tool to design Silverlight Applications)

No comments: