This project is read-only.

Detecting Silverlight 2.0

Jan 21, 2009 at 8: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 22, 2009 at 12:12 AM
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="" style="text-decoration: none;"><img src="" alt="Get Microsoft Silverlight" style="border-style: none" /></a>
          <br />Microsoft Sliverlight is required to properly run this site.</div>
Jan 23, 2009 at 1:58 AM
worked 100%