DCSIMG
ASP .NET - Alex Golesh's Blog About Silverlight Development

Browse by Tags

All Tags » ASP .NET (RSS)

Silverlight Tip: Object Creation via Silverlight.js – IE8 & FireFox tweak

Yesterday, when I arrive to the office my colleague (same one from this post) waited for me at the entry with new question/problem. That’s what I heard: - Hi Alex. I have a problem with my Silverlight application under FireFox – it is not being displayed on page! In IE(7) everything works fine, and in the FF is event not shown… :( - Well – I said – let’s see… I’ve got the sources from the company source server, launched the application on my machine IE(8) and got very “wired” sized application and...

Silverlight in the Mesh and the “Cloud” – Silverlight Mesh Enabled Web Application (Part 3)

Today I’ll talk about SMEWA (Silverlight Mesh Enabled Web Application) creation. To create one (as for today) you need to be a member of Live Framework CTP. Invite to this CTP could be received through Microsoft Connect site. After receiving the invitation key and redeeming it you will be able to download Live Framework SDK and Tools for Visual Studio and at Azure Services Developer Portal create new project – Live Framework CTP After installing the Live Framework Tools for Visual Studio you will...

Silverlight in the Mesh and the “Cloud” – Hosted Service and Blob Storage (Part 2)

Hello. As I promised here I’m starting to describe my experiences in creating Silverlight Mesh Enabled Web Application (MEWA or SMEWA) with Cloud Hosted Services and Cloud Storage. Today I’ll talk about creating the storage and supported hosted services. First of all I needed to be a part of Windows Azure CTP and have at least 1 Storage account (to have persistent and non-persistent storage in Windows Azure) and at least 1 Hosted Services account (environment that provides the hosting and management...

Quick Silverlight Tip: Define control style dynamically

Lately I've been asked a couple of time by client how to provide certain level of customization for their Silverlight application. In many cases they want to provide their client with ability to change styles/templates in application or part of it. Another common request, is to provide an ability to use external style definitions. Here the quick tip on how it could be achieved. I'll build really simple solution, which uses WebService to provide external style definition as loose XAML file...

Quick Silverlight Tip: Creating/Destroying Silverlight 2 Object dynamically

One of my clients asked me how to create and show (and then destroy) Silverlight application on the fly. Here is very fast solution, which allows such an object to be created and destroyed. First, we (still) need to have some DIV which will hold the object. Here is my sample page HTML: 1: < body > 2: <!-- Runtime errors from Silverlight will be displayed here. 3: This will contain debugging information and should be removed or hidden when debugging is completed --> 4: < div id ='errorLocation'...

Quick Silverlight Tip: Silverlight Events in JavaScript and JavaScript Events in Silverlight

Lately I've been asked couple of times about catching managed events in JavaScript and catching JavaScript events in Silverlight managed code. In fact it is very easy, but seems not so obvious... Here it goes. To catch JavaScript event in Silverlight managed code, all your application need to do is to "attach" to event from some HtmlElement you have on hosting page and define some managed EventHandler to handle the event. Sample page as it was auto generated by Visual Studio 2008, MyApplicaitionTestPage...

Quick Silverlight Tip: "InitializeError #2103 - Invalid or malformed application" what is it and how to deal with it?

Today I've seen very strange and unpleasant error while trying to run some freshly created Silverlight application. It said: Code# 2103 Invalid or malformed application: Check manifest Fast search by popular search engines gave me this and this places, but everything mentioned there I've already knew or tried before... So what is it? Let's see what it was and how it was solved. Let's reproduce it. I'm creating new Silverlight 2 project, compiled it it works... My simplest project...

Silverlight application performance - refresh rate & CPU usage

You just wrote great Silverlight application? How about CPU usage? Do you have pretty static application UI and it still consumes 25-30% of your CPU? Probably you have to control how fast Silverlight should redraw the UI. To do it, you need to specify MaxFrameRate property in object initialization, like follows: 1: < asp:Silverlight ID ="Xaml1" runat ="server" 2: Source ="~/ClientBin/ShowFPS.xap" 3: MinimumVersion ="2.0.30523" 4: Width ="100%"...

Silverlight Tip: How to reflect ScriptObject content in runtime

Today I want to show how Silverlight application could "understand" which objects form HTML DOM from hosting page it deals with. The minute before I start, let me show why many of Silverlight developers need it. Lets assume we have some simple HTML/ASPX page, with some JavaScript functionality and JavaScript objects, like follows: 1: < html xmlns ="http://www.w3.org/1999/xhtml" style ="height:100%;" > 2: < head runat ="server" > 3: < title >...

Quick Silverlight Tip: Initialization Parameters

The scenario: you developing Silverlight application, and you need to pass some parameter inside - for example to define which page will be shown, or to pass user credentials, after he already logged-in in previous non-Silverlight part of application. So, ho you could do it? The answer is pretty simple - "initParams" in Silverlight object construction. The parameters could be named, and not named. Named parameters example: < object data ="data:application/x-silverlight," type...

Quick Tip: Silverlight Integration within HTML content

Couple of days ago I've got question, how Silverlight content could been integrated/overlapped by some HTML/AJAX content. The samples I've received produced following behavior - When clicking on hyperlink, it opens "modal pop-up" but Silverlight control is floating over it: Another sample: When clicking on "Click Here" button HTML "window" being placed behind Silverlight control: Now the quick tip: When you need to make layering, positioning, etc. integration...

Tech-Ed 2008 is over

Tech-Ed 2008 Israel is over, and I'd like to thanks Microsoft for making it happen. I'd also like to thanks all, who was on my and Tamir 's "show". I hope that all attendees enjoy watching it like we enjoyed making it! Don't forget the survey ;) Also, great thanks to Tamir ! Stay tuned on videos of how we put all this session together - hope it will here in day or two.   UPDATE #1: My video already posted here UPDATE #2: Tamir's video already posted here  ...

Silverlight 2 & CreateSilverlight()

Current Silverlight 2 Beta by default doesn't using silverlight.js/CreateSilverlight() functionality we used to add Silverlight in Alpha version, but Silverlight directly created on page as object: 1: < div id ="silverlightControlHost" > 2: < object data ="data:application/x-silverlight," type ="application/x-silverlight-2-b1" width ="100%" height ="100%" > 3: < param name ="source" value ="SilverlightApplication4...

Preview of ASP.NET 3.5 Extensions CTP was Released

Microsoft released today the first CTP preview of an "ASP.NET 3.5 Extensions". This first ASP.NET 3.5 Extensions preview release includes: ASP.NET AJAX Improvements : New ASP.NET AJAX features in the ASP.NET 3.5 Extensions release include better browser history support (back/forward button integration, and server-side history management support), improved AJAX content linking support with permalinks, and additional JavaScript library improvements. ASP.NET MVC: This model view controller...
Posted by Alex Golesh | with no comments