<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mike Hole &#187; Silverlight</title>
	<atom:link href="http://mikehole.com/tag/silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikehole.com</link>
	<description>My development stuff ...</description>
	<lastBuildDate>Sun, 05 Feb 2012 13:42:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mikehole.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mike Hole &#187; Silverlight</title>
		<link>http://mikehole.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mikehole.com/osd.xml" title="Mike Hole" />
	<atom:link rel='hub' href='http://mikehole.com/?pushpress=hub'/>
		<item>
		<title>More good times for app developers?</title>
		<link>http://mikehole.com/2011/05/18/more-good-times-for-app-developers/</link>
		<comments>http://mikehole.com/2011/05/18/more-good-times-for-app-developers/#comments</comments>
		<pubDate>Wed, 18 May 2011 07:58:38 +0000</pubDate>
		<dc:creator>mikehole</dc:creator>
				<category><![CDATA[ARM]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tablets]]></category>
		<category><![CDATA[Windows 8]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Win8]]></category>

		<guid isPermaLink="false">https://mikehole.wordpress.com/2011/05/18/more-good-times-for-app-developers/</guid>
		<description><![CDATA[UPDATE: 6th June 2011 Hi, I just added a new post that expresses my disappointment in the messages that have come from the Windows 8 launch: http://mikehole.com/2011/06/06/an-end-to-the-good-times-before-they-even-start/ Just a short post to get something that has just started swishing about in my head out. I just read the following article: http://www.businessinsider.com/intel-exec-spills-the-beans-on-microsofts-tablet-plans-2011-5?utm_source=twitterfeed&#38;utm_medium=twitter In this article the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikehole.com&amp;blog=13039743&amp;post=179&amp;subd=mikehole&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>UPDATE: 6th June 2011</p>
<p>Hi, I just added a new post that expresses my disappointment in the messages that have come from the Windows 8 launch:</p>
<p><a href="http://mikehole.com/2011/06/06/an-end-to-the-good-times-before-they-even-start/">http://mikehole.com/2011/06/06/an-end-to-the-good-times-before-they-even-start/</a></p>
<hr />
<p>Just a short post to get something that has just started swishing about in my head out.</p>
<p>I just read the following article:</p>
<p><a href="http://www.businessinsider.com/intel-exec-spills-the-beans-on-microsofts-tablet-plans-2011-5?utm_source=twitterfeed&amp;utm_medium=twitter">http://www.businessinsider.com/intel-exec-spills-the-beans-on-microsofts-tablet-plans-2011-5?utm_source=twitterfeed&amp;utm_medium=twitter</a></p>
<p>In this article the beans are spilt in regards to Windows 8 running on ARM processors (by an Intel exec of all people). </p>
<p>Microsoft has targeted the ARM processor architecture because Win8 will have version that will run on all sorts of platforms that require low power consumption such as Tablets, Smartphones (although this is unlikely as we have WP7) and small form factor PC’s. This then is a big enabler for MS to finally get into the tablet market big time.</p>
<p>But there is one other point that is mentioned, and that is that <strong>legacy applications won’t run on the Arm architecture</strong>. The author even states ‘Developers may also face challenges writing their apps for both platforms’.</p>
<p>Urm no! &#8211; Yes we have to lament that great applications that you use every day won’t run but if you really need to run those applications then you can always stick to Intel based kit (and I am sure Intel will love you for it).</p>
<p>But us developers have Silverlight and<em>&#160;</em>I will bet my left arm that the Arm based Win8 is going to run that (This is another sign of why that shift in priorities that people saw as the death of SIlverlight was mentioned).</p>
<p>So what is SIlverlight? It’s an enabler for the write once run anywhere (pc, phone tablet, set top box etc.). Something that us app developers will cherish.</p>
<p>If you like me also follow the rumour mill then you will know that Microsoft are looking to create an app store (can I use those words without being sued?). The backbone of this considering the different architectures that Win8 is going to support has to be Silverlight based I am sure.</p>
<p>What this means for us developers is that there is yet another eco-system on it’s was (people are going to want applications and right now there isn’t any).</p>
<p>So if I was you I would start learning Silverlight and building your app ideas because it looks like there are some good time ahead for those who get in first.&#160; </p>
<p>What are your thoughts? Feel free to leave a comment.</p>
<p>Cheers,</p>
<p>Mike</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mikehole.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mikehole.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mikehole.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mikehole.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mikehole.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mikehole.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mikehole.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mikehole.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mikehole.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mikehole.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mikehole.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mikehole.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mikehole.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mikehole.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikehole.com&amp;blog=13039743&amp;post=179&amp;subd=mikehole&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mikehole.com/2011/05/18/more-good-times-for-app-developers/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a4ea83363a7e21f40c8e807f6d78869?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikehole</media:title>
		</media:content>
	</item>
		<item>
		<title>Where is my 3rd screen?</title>
		<link>http://mikehole.com/2010/12/03/where-is-my-3rd-screen/</link>
		<comments>http://mikehole.com/2010/12/03/where-is-my-3rd-screen/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 09:13:09 +0000</pubDate>
		<dc:creator>mikehole</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[xBox]]></category>
		<category><![CDATA[#slfs10]]></category>
		<category><![CDATA[Future Of Silverlight]]></category>

		<guid isPermaLink="false">https://mikehole.wordpress.com/2010/12/03/where-is-my-3rd-screen/</guid>
		<description><![CDATA[With MS using the new catch phrase ‘To the cloud’ and saying things like ‘three screens and the cloud’. You would think that they would consider their cross device support even if those devices are all Microsoft based ones. We all can see that they have the cloud sussed with their Azure platform and services [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikehole.com&amp;blog=13039743&amp;post=103&amp;subd=mikehole&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin:0 0 10pt;" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri"><a href="http://mikehole.files.wordpress.com/2010/12/image_thumb.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;margin:0 10px 0 0;" title="image_thumb" border="0" alt="image_thumb" align="left" src="http://mikehole.files.wordpress.com/2010/12/image_thumb_thumb.png?w=267&#038;h=177" width="267" height="177" /></a>With MS using the new catch phrase ‘To the cloud’ and saying things like ‘three screens and the cloud’. You would think that they would consider their cross device support even if those devices are all Microsoft based ones. </font></font></font></p>
<p style="margin:0 0 10pt;" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">We all can see that they have the cloud sussed with their Azure platform and services based offerings and this excites me greatly and makes me wish that I can start thinking about those three screens. </font></font></font></p>
<p style="margin:0 0 10pt;" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">So the third screen is my TV right? How do I get to use my TV as the third screen well that would be with my Xbox surely. But do I really have to use XNA to realise this dream especially since I have all my design assets within XAML right now. </font></font></font></p>
<p style="margin:0 0 10pt;" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">There have been all sorts of rumours regarding SL on the Xbox without any sort of foundation or demonstration from MS. </font></font></font></p>
<p style="margin:0 0 10pt;" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">For yesterdays Future of Silverlight Keynote I was hoping that we would see some more regarding the platforms that Microsoft are targeting specifically hoping that one of those would be the xBox. </font></font></font></p>
<p style="margin:0 0 10pt;" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">What I actually saw was how Silverlight Is concentrating on adding abilities that are mainly PC based along the lines of pInvoke and even remote control devices (surely this has been added because of a specific supplier request not because the public have asked). </font></font></font></p>
<p style="margin:0 0 10pt;" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">It is about time they made things clear so that they can either quash or realise my hopes. </font></font></font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mikehole.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mikehole.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mikehole.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mikehole.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mikehole.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mikehole.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mikehole.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mikehole.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mikehole.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mikehole.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mikehole.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mikehole.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mikehole.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mikehole.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikehole.com&amp;blog=13039743&amp;post=103&amp;subd=mikehole&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mikehole.com/2010/12/03/where-is-my-3rd-screen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a4ea83363a7e21f40c8e807f6d78869?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikehole</media:title>
		</media:content>

		<media:content url="http://mikehole.files.wordpress.com/2010/12/image_thumb_thumb.png" medium="image">
			<media:title type="html">image_thumb</media:title>
		</media:content>
	</item>
		<item>
		<title>oData call debugging.</title>
		<link>http://mikehole.com/2010/08/04/odata-call-debugging/</link>
		<comments>http://mikehole.com/2010/08/04/odata-call-debugging/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 20:53:35 +0000</pubDate>
		<dc:creator>mikehole</dc:creator>
				<category><![CDATA[DataService]]></category>
		<category><![CDATA[oData]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WP7]]></category>
		<category><![CDATA[WCF Data Services]]></category>
		<category><![CDATA[WP7DEV]]></category>

		<guid isPermaLink="false">https://mikehole.wordpress.com/2010/08/04/odata-call-debugging/</guid>
		<description><![CDATA[&#160; If you find yourself looking at error responses from the WCF data service&#160; that only tell you ‘An error occurred while processing this request’ from a WCF Data Service then… Just add: &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; config.UseVerboseErrors = true; to the method: public static void InitializeService(DataServiceConfiguration config) And you will get the full details of why your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikehole.com&amp;blog=13039743&amp;post=56&amp;subd=mikehole&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p><a href="http://mikehole.files.wordpress.com/2010/08/odata_logo_ms_small.png"><img style="display:inline;border-width:0;" class="wlDisabledImage" title="OData_logo_MS_small" border="0" alt="OData_logo_MS_small" src="http://mikehole.files.wordpress.com/2010/08/odata_logo_ms_small_thumb.png?w=240&#038;h=29" width="240" height="29" /></a></p>
<p>If you find yourself looking at error responses from the WCF data service&#160; that only tell you ‘An error occurred while processing this request’ from a WCF Data Service then…</p>
<p>Just add:</p>
<pre style="font-family:consolas;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; config.UseVerboseErrors = <span style="color:blue;">true</span>;</pre>
<p>to the method:</p>
<pre>public static void InitializeService(DataServiceConfiguration config)</pre>
<p>And you will get the full details of why your data service isn’t doing what you want it to.</p>
<p>If you want you can also override the HandleException method to capture the exception on the server:</p>
<pre style="font-family:consolas;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:blue;">protected</span>&#160;<span style="color:blue;">override</span>&#160;<span style="color:blue;">void</span> HandleException(<span style="color:#2b91af;">HandleExceptionArgs</span> args)&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:blue;">base</span>.HandleException(args);

&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:green;">//Do something to handle the exception.</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</pre>
<p>&#160;</p>
<p>Hope this helps – sure has helped me!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mikehole.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mikehole.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mikehole.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mikehole.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mikehole.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mikehole.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mikehole.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mikehole.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mikehole.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mikehole.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mikehole.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mikehole.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mikehole.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mikehole.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikehole.com&amp;blog=13039743&amp;post=56&amp;subd=mikehole&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mikehole.com/2010/08/04/odata-call-debugging/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a4ea83363a7e21f40c8e807f6d78869?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikehole</media:title>
		</media:content>

		<media:content url="http://mikehole.files.wordpress.com/2010/08/odata_logo_ms_small_thumb.png" medium="image">
			<media:title type="html">OData_logo_MS_small</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamics CRM 4 with Silverlight Part 1 &#8211; The IFRAME approach.</title>
		<link>http://mikehole.com/2010/04/24/dynamics-crm-4-with-silverlight-part-1-the-iframe-approach/</link>
		<comments>http://mikehole.com/2010/04/24/dynamics-crm-4-with-silverlight-part-1-the-iframe-approach/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 17:40:53 +0000</pubDate>
		<dc:creator>mikehole</dc:creator>
				<category><![CDATA[Dynamics CRM]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[VS2010]]></category>
		<category><![CDATA[xRm]]></category>
		<category><![CDATA[V4]]></category>

		<guid isPermaLink="false">https://mikehole.wordpress.com/2010/04/24/dynamics-crm-4-with-silverlight-part-1-the-iframe-approach/</guid>
		<description><![CDATA[Introduction 29/72010: Sorry but I am going to be dropping this series because my software focus has change to developing Windows Phone 7 applications. Maybe re visit this in the future (hopefully before CRM 5 is released Hi, this is part 1 of a series of posts giving an introduction to extending Microsoft Dynamics using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikehole.com&amp;blog=13039743&amp;post=48&amp;subd=mikehole&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h4>Introduction</h4>
<div style="display:inline;float:left;margin:0;padding:0;" id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:b955f5ee-c622-4166-b405-07f06bba58c5" class="wlWriterEditableSmartContent"><a href="http://mikehole.files.wordpress.com/2010/04/contact8x6.png" title="" rel="thumbnail"><img border="0" src="http://mikehole.files.wordpress.com/2010/04/contact.png?w=272&#038;h=225" width="272" height="225" /></a></div>
<p><strong>29/72010: Sorry but I am going to be dropping this series because my software focus has change to developing Windows Phone 7 applications. Maybe re visit this in the future (hopefully before CRM 5 is released <img style="border-style:none;" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://mikehole.files.wordpress.com/2010/07/wlemoticonwinkingsmile.png?w=575" /></strong></p>
<p>Hi, this is part 1 of a series of posts giving an introduction to extending Microsoft Dynamics using Silverlight.</p>
<p>In this post I will outline how to add a custom Silverlight control to any of the entity forms.</p>
<p>For these articles I will be using Visual Studio 2010 Professional with All of the usual <a href="http://www.silverlight.net/getstarted/" target="_blank">Silverlight (version 4)</a> tools installed.</p>
<p>At <a href="http://www.sequence.co.uk/" target="_blank">Sequence</a> the company where I work we make use of the <a href="http://crmaccelerators.codeplex.com/releases/view/19956" target="_blank">eService accelerator</a> this allows our customers to log cases via an extension to our web site.&#160; For this series of posts I am going to create a new tab in the contact entity screen that will display details of the contacts log in details that are stored in a separate ASP.NET authentication database.</p>
<h4>How it works</h4>
<p>The CRM 4 entity forms allow administrators to customise forms in many different ways but the one way that makes things handy for us is the ability to add IFRAME elements into a form. We will use this customisation to display a Silverlight control inside the form.</p>
<h4>
<p>&#160;</p>
<p>&#160;</p>
<p> Getting Started</h4>
<p>Create a new Silverlight application as normal ensuring that you enable RIA services and create a test web project. </p>
<p>NOTE: In future when you will want to make this live you will need a server available that you can add the .Net framework 4 and host the web site or virtual directory.</p>
<h4></h4>
<h4>Identifying the Entity</h4>
<p>So that the Silverlight application knows what entity it is using it will need to be passed the Id of the entity that is being displayed in the entity form. To ensure that this works when you add an IFRAME customisation to an entity you will need to ensure that the I frame is passed the record ID and type:</p>
<p><a href="http://mikehole.files.wordpress.com/2010/04/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://mikehole.files.wordpress.com/2010/04/image_thumb.png?w=455&#038;h=47" width="455" height="47" /></a></p>
<p>This results in the following URL:</p>
<p><a href="http://localhost:40363/ContactDashboard.aspx?type=2&amp;typename=contact&amp;id={299390EB-049E-DE11-A280-00155D801211}&amp;orgname=Sequence&amp;userlcid=1033&amp;orglcid=1033">http://localhost:40363/ContactDashboard.aspx?type=2&amp;typename=contact&amp;id={299390EB-049E-DE11-A280-00155D801211}&amp;orgname=Sequence&amp;userlcid=1033&amp;orglcid=1033</a></p>
<p>To get these values into my Silverlight application I have decided to use Silverlight parameters. To do this I first added the following code to the ASPX page that displays the application:</p>
<p><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">public</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">string</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> SilverlightParams</font> </font>
<p>{</p>
<p>&#160;</p>
</p>
<p> <font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160;&#160; get</font></font></font>
<p>&#160;</p>
<p> <font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;&#160;&#160; {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>
<p>   </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">string</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> sRes = </font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">string</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">.Format(</font></font><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">&quot;id={0},type={1},orgname={2},typename={3}&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">, </font></font></font>
<p><font size="2" face="Consolas"><font size="2" face="Consolas">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Request[</font></font><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">&quot;id&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">], Request[</font></font><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">&quot;type&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">], Request[</font></font><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">&quot;orgname&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">], Request[</font></font><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">&quot;typename&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">]);</font> </font><br />
<blockquote>
<p>&#160;</p>
</blockquote>
<p>   <font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160; return</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> sRes;</font></font>
<p>&#160;&#160;&#160; }</p>
<p>}</p>
<p>Then in the page mark-up I added the following to the params for the Silverlight application: </p>
<p>&lt;<font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">param</font></font></font><font size="2" face="Consolas"><font color="#000000" size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">name</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;initParams&quot;</font></font></font><font size="2" face="Consolas"><font color="#000000" size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">value</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;</font></font></font><font size="2" face="Consolas"><font color="#000000" size="2" face="Consolas">&lt;%</font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"> =</font></font></font><font size="2" face="Consolas"><font color="#000000" size="2" face="Consolas"> SilverlightParams %&gt;</font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&quot;</font></font></font><font size="2" face="Consolas"><font color="#000000" size="2" face="Consolas"> </font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">/&gt;</font></font></font></p>
<p>So we get this:</p>
<p>   <font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&lt;</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">object</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">data</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;data:application/x-silverlight-2,&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">type</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;application/x-silverlight-2&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"></font></font></font></font>
<p><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">&#160;&#160; width</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;100%&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">height</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;100%&quot;&gt;</font></font></font></p>
<p>   <font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160;&#160; &lt;</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">param</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">name</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;source&quot;&#160;&#160;&#160; </font></font></font></font>
<p><font color="#0000ff">&#160;&#160;&#160;&#160;&#160; </font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">value</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;ClientBin/Sequence.CRM.SilverlightExtensions.MainDashboard.xap&quot;/&gt;</font></font></font></p>
<p>   <font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160;&#160; &lt;</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">param</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">name</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;onError&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">value</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;onSilverlightError&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">/&gt;</font></font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160;&#160; &lt;</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">param</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">name</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;background&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">value</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;white&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">/&gt;</font></font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160;&#160; &lt;</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">param</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">name</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;minRuntimeVersion&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">value</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;4.0.50303.0&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">/&gt;</font></font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160;&#160; &lt;</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">param</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">name</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;autoUpgrade&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">value</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;true&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">/&gt;</font></font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160;&#160; &lt;</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">param</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">name</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;initParams&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">value</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">&lt;%</font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"> =</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> SilverlightParams %&gt;</font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">/&gt;</font></font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160;&#160; &lt;</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">a</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">href</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=<a href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=4.0.50303.0">http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=4.0.50303.0</a></font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"></font></font></font></font>
<p><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">&#160;&#160;&#160;&#160;&#160;&#160;&#160; style</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;</font></font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">text-decoration</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">:none&quot;&gt;</font></font></font></p>
<p>   <font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160; &lt;</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">img</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">src</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=<a href="http://go.microsoft.com/fwlink/?LinkId=161376">http://go.microsoft.com/fwlink/?LinkId=161376</a></font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font></font>
<p><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#555555">&#160;&#160;&#160;&#160;&#160;&#160; </font>alt</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;Get Microsoft Silverlight&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">style</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;</font></font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">border-style</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">:none&quot;/&gt;</font></font></font></p>
<p>   <font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160;&#160; &lt;/</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">a</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&gt;</font></font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>     </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&lt;/</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">object</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&gt;&lt;</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">iframe</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">id</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;_sl_historyFrame&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">style</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">=&quot;</font></font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">visibility</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">:hidden;</font></font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">height</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">:0px;</font></font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">width</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">:0px;</font></font></font><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas"><font color="#ff0000" size="2" face="Consolas">border</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">:0px&quot;&gt;&lt;/</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">iframe</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&gt;&lt;/</font></font></font><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas"><font color="#800000" size="2" face="Consolas">div</font></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&gt;</font></font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"><br />
<h4></h4>
<h4></h4>
<h4></h4>
<h4>Making the App Know the entity Id</h4>
<p><font color="#000000" face="Verdana">In the Silverlight application project I added the following to the App class code:</font></p>
<p>       <font face="Consolas"><font face="Consolas">
<p>&#160;</p>
<p>         </font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">private</font></font></font><font face="Consolas"><font face="Consolas"> </font></font><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas">Guid</font></font></font><font face="Consolas"><font face="Consolas">? m_ContactID = </font></font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">null</font></font></font><font face="Consolas"><font face="Consolas">;</font>
<p>&#160;</p>
<p>         </font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">public</font></font></font><font face="Consolas"><font face="Consolas"> </font></font><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas">Guid</font></font></font><font face="Consolas"><font face="Consolas">? ContactID</font>
<p>{</p>
<p>&#160;</p>
<p>         </font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">&#160;&#160;&#160; get</font></font></font></font><font face="Consolas"><font face="Consolas">
<p>&#160;&#160;&#160; {</p>
<p>&#160;</p>
<p>         </font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">&#160;&#160;&#160;&#160;&#160;&#160;&#160; return</font></font></font><font face="Consolas"><font face="Consolas"> m_ContactID;</font>
<p>&#160;&#160;&#160; }</p>
<p>}</p>
<p>         </font></font>
<p><font color="#000000" face="Verdana">In the Application_Startup method:</font></p>
<p>       <font face="Consolas"><font face="Consolas">
<p>&#160;</p>
<p>         </font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">private</font></font></font><font face="Consolas"><font face="Consolas"> </font></font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">void</font></font></font><font face="Consolas"><font face="Consolas"> Application_Startup(</font></font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">object</font></font></font><font face="Consolas"><font face="Consolas"> sender, </font></font><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas">StartupEventArgs</font></font></font><font face="Consolas"><font face="Consolas"> e)</font>
<p>{</p>
<p>         </font></font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas">
<p>&#160;</p>
<p>               </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">&#160;&#160;&#160; if</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> (!</font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">string</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">.IsNullOrEmpty(e.InitParams[</font></font><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">&quot;id&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">]))</font>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; m_ContactID = </p>
<p>               </font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">new</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> </font></font><font color="#2b91af" size="2" face="Consolas"><font color="#2b91af" size="2" face="Consolas"><font color="#2b91af" size="2" face="Consolas">Guid</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">(e.InitParams[</font></font><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">&quot;id&quot;</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">]);</font>
<p>&#160;</p>
<p>               </font></font></font></font><font face="Consolas"><font face="Consolas"></font></font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">&#160;&#160;&#160; </font></font></font></font>
<p><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">&#160;&#160;&#160; this</font></font></font><font face="Consolas"><font face="Consolas">.RootVisual = </font></font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">new</font></font></font><font face="Consolas"><font face="Consolas"> </font></font><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas">MainPage</font></font></font><font face="Consolas"><font face="Consolas">();</font> </font>
<p>}</p>
<p><font color="#000000" face="Verdana">We can now access the ContactID anywhere in the code like this:</font></p>
<p>         <font size="2" face="Consolas"><font size="2" face="Consolas">
<p>((</p>
<p>           </font><font color="#2b91af" size="2" face="Consolas"><font color="#2b91af" size="2" face="Consolas"><font color="#2b91af" size="2" face="Consolas">App</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">)</font></font><font color="#2b91af" size="2" face="Consolas"><font color="#2b91af" size="2" face="Consolas"><font color="#2b91af" size="2" face="Consolas">App</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">.Current).ContactID</font></font></font><br />
<h4>&#160;</h4>
<h4>Just checking</h4>
<p><font color="#000000" face="Verdana">Here is a screenshot of a simple app in an I frame just to show it works:</font></p>
<p><a href="http://mikehole.files.wordpress.com/2010/04/image1.png"><font face="Verdana"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://mikehole.files.wordpress.com/2010/04/image_thumb1.png?w=600&#038;h=160" width="600" height="160" /></font></a><font face="Verdana"> </font></p>
<p><font face="Verdana">In part 2 I will show how to hook this app up to the ASP.NET authentication database.</font></p>
</p>
<p>&#160;</p>
<p>     </font></font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mikehole.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mikehole.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mikehole.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mikehole.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mikehole.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mikehole.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mikehole.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mikehole.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mikehole.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mikehole.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mikehole.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mikehole.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mikehole.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mikehole.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikehole.com&amp;blog=13039743&amp;post=48&amp;subd=mikehole&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mikehole.com/2010/04/24/dynamics-crm-4-with-silverlight-part-1-the-iframe-approach/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a4ea83363a7e21f40c8e807f6d78869?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikehole</media:title>
		</media:content>

		<media:content url="http://mikehole.files.wordpress.com/2010/04/contact.png" medium="image" />

		<media:content url="http://mikehole.files.wordpress.com/2010/07/wlemoticonwinkingsmile.png" medium="image">
			<media:title type="html">Winking smile</media:title>
		</media:content>

		<media:content url="http://mikehole.files.wordpress.com/2010/04/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://mikehole.files.wordpress.com/2010/04/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft getting stick for using Flash again.</title>
		<link>http://mikehole.com/2010/04/13/microsoft-getting-stick-for-using-flash-again/</link>
		<comments>http://mikehole.com/2010/04/13/microsoft-getting-stick-for-using-flash-again/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 08:37:11 +0000</pubDate>
		<dc:creator>mikehole</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Kin]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://mikehole.wordpress.com/?p=18</guid>
		<description><![CDATA[Somehow I missed it but Microsoft launched a new phone platform recently (Kin). This comprises of two phones that have quite different factors but have one main purpose, to be the users social hub. To promote the new phones Microsoft have put together a web site that gives the usual brochure-ware details about the product etc. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikehole.com&amp;blog=13039743&amp;post=18&amp;subd=mikehole&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a rel="thumbnail" href="http://mikehole.files.wordpress.com/2010/04/untitled8x6.png"><img class="alignleft" style="border:0;" src="http://mikehole.files.wordpress.com/2010/04/untitled.png?w=378&#038;h=328" border="0" alt="" width="378" height="328" /></a></p>
<p>Somehow I missed it but Microsoft launched a new phone platform recently (<a href="http://kin.com" target="_blank">Kin</a>). This comprises of two phones that have quite different factors but have one main purpose, to be the users social hub.</p>
<p>To promote the new phones Microsoft have put together a web site that gives the usual brochure-ware details about the product etc.</p>
<p>The Kin web site has been created using  Flash as a method of delivering the rich experience rather than Silverlight.</p>
<p>This has created the usual mutterings from people on <a href="http://search.twitter.com/search?q=kin+silverlight" target="_blank">Twitter</a> with as you can guess the word ‘Fail’ being used quite a bit.</p>
<p>This really does rattle my cage. I for one can see why Microsoft have used Flash for the front end of the site and yes it is because of the market penetration that Flash currently has over Silverlight.</p>
<p>Imagine if you had a brand new product and you wanted to sell it to the masses but you told the people at the top that although 60% of the web population will get to see it straight away the other 40% will have to download an app first. You have to agree that the people at the top would ask you what pills you have been taking recently. You so have to go with market share on this one.</p>
<p>I am however reserving my bets for the fact that Kin Studio will be written in Silverlight. Kin Studio is the online face of the social aspect of the phones and it looks to be a good showcase of what can be achieved with the Microsoft technology stack including Azure, Silverlight and the new Windows Mobile 7 (platform). If Microsoft have used Silverlight for Kin Studio they will be increasing their penertration of silverlight and you never know maybe oneday they will have enough of a share that they will launch a new product / site with silverlight as the 1st thing people see.</p>
<p>I just hope I am not let down!</p>
<p>BTW: I imagine I will get some flames from this but hay I am sure it won&#8217;t be as much as Microsoft themselves.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mikehole.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mikehole.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mikehole.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mikehole.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mikehole.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mikehole.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mikehole.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mikehole.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mikehole.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mikehole.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mikehole.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mikehole.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mikehole.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mikehole.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikehole.com&amp;blog=13039743&amp;post=18&amp;subd=mikehole&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mikehole.com/2010/04/13/microsoft-getting-stick-for-using-flash-again/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a4ea83363a7e21f40c8e807f6d78869?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikehole</media:title>
		</media:content>

		<media:content url="http://mikehole.files.wordpress.com/2010/04/untitled.png" medium="image" />
	</item>
	</channel>
</rss>
