Detecting Silverlight 2.0

Jan 21, 2009 at 7:32 PM
I have succefully installed a slide.show2 photo gallery
I need to know HOW to detect silverlight 2.0 automatically and get users to download if they do not have it
Jan 21, 2009 at 11:12 PM
Have you tried embedding the Silverlight Install Link into your Object tag?  if the Object doesn't run then the install link will automatically appear.

<object type="application/x-silverlight-2" data="data:application/x-silverlight-2," width="100%" height="100%">
     <param name="background" value="black" />
     <param name="source" value="Vertigo.SlideShow.xap" />
     <param name="initParams" value="ConfigurationProvider=DarkTheme,DataProvider=XmlDataProvider;Path=SlideShow.axd"/>
     <div style="width:100%; height:100%;text-align:center">
          <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>
          <br />Microsoft Sliverlight is required to properly run this site.</div>
</object>
Jan 23, 2009 at 12:58 AM
YES! THANKS!
worked 100%