Hi,
I am using ASP.NET 3.5 with C#. I need to write a code that will help
me detect if Microsoft's Silverlight is installed on the clients
browser or not. Is it is not installed I display a NoSilverLight.aspx
page. If it is installed I dispaly a mySilverlight.aspx page.
I have done it in 2 ways and none of them are working
--------------------------------------------------------------------
Method 1:
<div id="silverlightControlHost">
<script type="text/javascript">
if (Silverlight.available) //true silverlight installed
{
document.write("Silverlight is available!");
}
else {
document.write("Silverlight is NOT available!");
}
</script>
</div>
-------------------------------------------------------------------------------------------------------------------------
Method 2:
<script src="Intel.ARK.Silverlight1_0.Controls.Client.Silverlight.js"
type="text/javascript"></script>
var = Silverlight.isInstalled(null)
if ( Silverlight.isInstalled(null) )
{
document.write("Silverlight is available!"); }