- JavaScript is a scripting language used to enable programmatic access to objects within other applications.
- It is primarily used in the form of client-side JavaScript for the development of dynamic websites.
- JavaScript is a dialect of the ECMAScript standard and is characterized as a dynamic, weakly typed, prototype-based language with first-class functions.
- JavaScript was influenced by many languages and was designed to look like Java, but be easier for non-programmers to work with.
WELCOME TO SILVERLIGHT
Tuesday, April 28, 2009
What is JavaScript?
Media features in Silverlight 2.0
- WMA Professional support, including WMA 10 Pro low-bitrate modes.
- However, multi-channel audio content is still down-converted to stereo output.
- Content protection powered by Microsoft PlayReady DRM client.
- Server-side playlists in Windows Media Services.
- Media Stream Source API.
How to load XML from a file..?
private void btnLoadXmlFromFile_Click (object sender, EventArgs e)
{
XElement bookStoreXml = XElement.Load (@"C:\Temp\Bookstore.xml"); MessageBox.Show(bookStoreXml.Xml);
}
How to Save in XML file?
For example, to save the XDocument contents to a file named Bookstore.xml,
you can write:
C# Coding:
private void btnSaveXML_Click(object sender, EventArgs e)
{
XDocument bookStoreXml = new XDocument(new XDeclaration("1.0", "utf-8","yes"), new XComment("Bookstore XMLExample"), new XElement("bookstore", ---- ---- ) ); bookStoreXml.Save(@"C:\Temp\Bookstore.xml");
MessageBox.Show("Successfully saved");
}
XElement class
XElement class is bottom-most in the class hierarchy in XLinq, it is the fundamental class.
As the name suggests, it represents an XML element and allows you to perform the following operations:
- Create elements with a specified element name
- Change the element's contents
- Add, change, or delete child elements
- Add attributes to the element
- Save the element as an XML fragment
- Extract the contents in text form.
Key Components of LINQ
At this early stage, the LINQ family consists of three technologies, although Microsoft or third-party developers may add more in the future:
- LINQ is a general purpose API that provides the core foundation for a consistent query experience.
- DLinq (also known as LINQ to SQL) is a LINQ extension geared mainly towards relational databases.
- XLinq (also known as LINQ to XML) is a LINQ extension for querying XML documents, as well as creating or transforming XML.
Representational State Transfer (REST)

- Representational State Transfer (REST) is an architectural style for building distributed systems.
- The WWW is an example for such a system.
- REST-style applications can be built using a wide variety of technologies.
- REST's main principles are that of resource-oriented states and functionalities.
- The idea of a unique way of identifying resources, and the idea of how operations on these resources are defined in terms of a single protocol for interacting with resources.
- REST-oriented system design leads to systems which are open, scalable, extensible and easy to understand.
Sunday, April 19, 2009
Benefits of Rich Internet Applications
- RIAs offer organizations a proven, cost-effective way to deliver modern applications with real business benefits.
- Offer users a richer, more engaging experience.
- Keep pace with users rising expectations.
- Increase customer loyalty and generate higher profits.
- Leverage existing personnel, processes, and infrastructure.
Interactive Page Elements in RIA

One way to add richness to your application is to allow users to directly interact with page elements:
- Editing text inline.
- Dragging.
- Dropping graphic Elements.
- Panning a map. A primary challenge is to communicate what can be done with page elements and how to use new controls.
- People must be able to identify that a control exists and easily determine how to use it.
Key features of RIA Applications
What’s an Rich Internet Application?

Difference between RIA and other applications
- The key difference between RIAs and other Internet applications is the amount of interaction in the interface.
- In a traditional page-based Internet application, interaction is limited to a small set of standard controls such as checkboxes, radio buttons, form fields and buttons.
- An RIA can use a wider range of controls to improve users’ interaction with the interface, allowing efficient interactions, better error management, feedback and overall user experience.
Application programming interface

An application programming interface (API) is a set of routines, data structures, object classes and/or protocols provided by libraries and/or operating system services in order to support the building of applications.
An API may be:
Language-dependent
- Available only in a particular programming language, using the particular syntax and elements of the programming language to make the API convenient to use in this particular context.
Language-independent
- Written in a way that means it can be called from several programming languages .
- This is a desired feature for a service-style API that is not bound to a particular process or system and is available as a remote procedure call.
Wednesday, April 15, 2009
What is WSDL?
WSDL is an XML-based language for describing Web services and how to access them.
- WSDL stands for Web Services Description Language.
- WSDL is based on XML.
- WSDL is used to describe Web services.
- WSDL is also used to locate Web services.
- WSDL is a W3C standard.
What is UDDI?
UDDI is a directory service where businesses can register and search for Web services.
- UDDI stands for Universal Description, Discovery and Integration.
- UDDI is a directory for storing information about web services.
- UDDI is a directory of web service interfaces described by WSDL.
- UDDI communicates via SOAP.
- UDDI is built into the Microsoft .NET platform.
What is SOAP?
SOAP is a simple XML-based protocol to let applications exchange information over HTTP.
Or more simple:
- SOAP is a protocol for accessing a Web Service.
- SOAP stands for Simple Object Access Protocol.
- SOAP is a communication protocol.
- SOAP is a format for sending messages .
- SOAP is designed to communicate via Internet.
- SOAP is platform independent.
- SOAP is language independent.
- SOAP is based on XML .
- SOAP is simple and extensible .
- SOAP allows you to get around firewalls .
- SOAP is a W3C standard.
Tuesday, April 14, 2009
How Silverlight would change the Web:
- Highest Quality Video Experience : prepare to see some of the best quality videos you have seen in your life, all embedded in highly graphical websites. The same research and technology that was used for VC-1, the codec that powers BluRay and HD DVD, is used by Microsoft today with its streaming media technologies.
- Cross-Platform, Cross-Browser : Finally build web applications that work on any browser, and on any operating system. At release, Silverlight will work with Mac as well as Windows! The Mono project has also already promised support for Linux!.
- Developers and Graphic Designers can play together! : Developers familiar with Visual Studio, Microsoft.net will be able to develop amazing Silverlight applications very quickly, and they will work on Mac's and Windows. Developers will finally be able to strictly focus on the back end of the application core, while leaving the visuals to the Graphic Design team using the power of XAML.
- Cheaper : Silverlight is now the most inexpensive way to stream video files over the internet at the best quality possible. Licensing is dead simple, all you need is IIS in Windows Server, and you’re done.
- Support for 3rd Party Languages : Using the power of the new Dynamic Language Runtime, developers will now be able to use Ruby, Python, and EcmaScript! This means a Ruby developer can develop Silverlight applications, and leverage the .net Framework!
- Cross-Platform, Cross-Browser Remote Debugging : If you are in the need to debug an application running on a Mac, no problem! You can now set breakpoints, step into/over code, have immediate windows, and all that other good stuff that Visual Studio provides.
- The best development environment on the planet : Visual Studio is an award winning development platform! As it continues to constantly evolve, so will Silverlight!
- Silverlight offers copy protection : Have you noticed how easy it is to download YouTube videos to your computer, and save them for later viewing ? Silverlight will finally have the features enabling content providers complete control over their rich media content! Streaming television, new indie broadcast stations, all will now be possible!
- Extreme Speed :There is a dramatic improvement in speed for AJAX-enabled websites that begin to use Silverlight, leveraging the Microsoft .net framework.
Main features of Silverlight 2.0 :
- A built-in CLR engine that delivers a super high performance execution environment for the browser. Silverlight uses the same core CLR engine that we ship with the full .NET Framework.
- Silverlight includes a rich framework library of built-in classes that you can use to develop browser-based applications.
- Silverlight includes support for a WPF UI programming model. The Silverlight 1.1 Alpha enables you to program your UI with managed code/event handlers, and supports the ability to define and use encapsulated UI controls.
- Silverlight provides a managed HTML DOM API that enables you to program the HTML of a browser using any .NET language.
- Silverlight doesn't require ASP.NET to be used on the backend web-server (meaning you could use Silverlight with with PHP on Linux if you wanted to).
- Silverlight 2 includes Deep Zoom, a technology derived from Microsoft Live Labs Seadragon. It allows users to zoom into, or out of, an image (or a collage of images), with smooth transitions, using the mouse wheel. The images can scale from 2 or 3 megapixels in resolution into the gigapixel range, but the user need not wait for it to be downloaded entirely; rather, Silverlight downloads only the parts in view, optimized for the zoom level being viewed.
- Silverlight 2 also allows limited filesystem access to Silverlight applications. It can use the operating system's native file dialog box to browse to any file (to which the user has access).
Silverlight 2.0 :
- Silverlight 2.0 includes a version of the .NET Framework, with the full Common Language Runtime as .NET Framework 3.0;
- So it can execute any .NET language including VB.NET and C# code.
- Unlike the CLR included with .NET Framework, multiple instances of the CoreCLR included in Silverlight can be hosted in one process.
- With this, the XAML layout markup file (.xaml file) can be augmented by code-behind code, written in any .NET language, which contains the programming logic.
- This version ships with more than 30 UI controls(including TextBox, CheckBox, Slider, ScrollViewer, and Calendar controls), for two-way databinding support, automated layout management (by means of StackPanel, Grid etc) as well as data-manipulation controls, such as DataGrid and ListBox.
- UI controls are skinnable using a template-based approach.
Main features of Silverlight 1.0 :
2. Silverlight supports the ability to progressively download and play media content from any web-server.
3. Silverlight also optionally supports built-in media streaming.
4. Silverlight enables you to create rich UI and animations, and blend vector graphics with HTML to create compelling content experiences.
5. Silverlight makes it easy to build rich video player interactive experiences.
Silverlight 1.0 :
Silverlight 1.0 consists of the core presentation framework,which is responsible for
- UI interactivity
- user input
- basic UI controls
- graphics and animation
- media playback
- DRM support
- DOM integration.
What is Silverlight?
- Silverlight is a new cross-browser, cross-platform implementation of the .NET Framework for building and delivering the next generation of media experiences and Rich Interactive Applications(RIA) for the web.
- It runs in all popular browsers, including Microsoft Internet Explorer, Mozilla Firefox, Apple Safari, Opera.
- The plugin required to run Silverlight is very small in size hence gets installed very quickly.
Wednesday, April 8, 2009
Windows Presentation Foundation (WPF) and Silverlight
WPF:
- WPF is Microsoft's new GUI framework that replaces all of the old"Windows Forms" and Win32 API.
- It builds on a vector based and GPU-enabled drawing framework (DirectX), and adds the ability to create richer UIs than Windows Forms does.
- The look and feel is also new.
- WPF applications can be deployed to the desktop or run in Internet Explorer .
- When WPF application run in Internet Explorer they run in a sandbox, so users simply point Internet Explorer at an URL and your application appears without any installation or confirmation need.
- All development tools are the same (Visual Studio) when making desktop and browser-based WPF applications, and you can use the same widgets for both.
Silverlight:
- Like WPF-applications can run in a browser, so do Silverlight applications.
- But Silverlight applications can be deployed to more platforms (OS X and Linux) and more browsers.
- This does however come with a cost.
- Like browsers-based WPF applications lose access to some functions compared to desktop applications, Silverlight applications can build on even less infrastructure.
- The GUI is one (of many) missing elements in Silverlight.
Difference between WPF and Silverlight2.0
2. Silverlight does not support some of the more advanced concepts of WPF such as controls, templating, 3D etc.,
3. Silverlight integrates right into an HTML page where as WPF XAML files have to be loaded via a frame if they want to mix with HTML content.
Monday, April 6, 2009
Web Services Working and its Platform elements
The basic Web services platform is XML + HTTP.
The HTTP protocol is the most used Internet protocol.
XML provides a language which can be used between different platforms and programming languages and still express complex messages and functions.
Web Services platform elements:
SOAP (Simple Object Access Protocol)
UDDI (Universal Description, Discovery and Integration)
WSDL (Web Services Description Language)

