how silverlight 2.0 run on webserver?, Silverlight 2.0 Life cycle, Silverlight tips on Lifecycle

February 23, 2009

Hello Friends I will try to give you best knowledge on Silverlight 2.0 from my reading and my experience.
We are starting on First tips which is related to how Silverlight page actually run. I have devided silverlight lifecycle in 6 stage. Below I have described what happens when Silverlight page is requested:
1. The server first creates all the server-side objects (whatever on the .aspx page either it is listbox, frame, grid etc.) and starts the page lifecycle.
2. After all the events have fired (and any event handling code has finished), the server
renders the page to ordinary HTML, at a time do work on one control. At this point, the Sil-
verlight control converts itself to a placeholder inside the

element and
generates the JavaScript code that calls createObject().
3. When the page is fully rendered, itís sent to the client. The server-side objects are
released from memory.
4. When the browser receives the page, it begins processing it. It displays the HTML
content and runs the JavaScript. In turn, the JavaScript calls createObject(), which
launches the Silverlight application.
5. The browser initializes the Silverlight plug-in, downloads the XAP file for the Silverlight
application (if itís not already present in the cache), and starts the application.
6. The Silverlight application runs in the client browser. No more server-side web page
code will be executed, unless the user navigates to another page or refreshes the cur-
rent page (both of which will shut down the current Silverlight application and restart
the entire process). If the user interacts with an ASP.NET control elsewhere on the
page, that control may post back the page (which will effectively end the currently run-
ning Silverlight application) or call back to the web server using ASP.NET AJAX (which
wonít disturb it).
As youíll see later in this chapter, the Silverlight application also has
the ability to trigger web server code by calling a web service.
Tomorrow I will give you brief introduction on silverlight and asp.net. And how javascript is different from silverlight.

Hello world!

February 22, 2009

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!


Follow

Get every new post delivered to your Inbox.