Report a Silverlight Bughttp://forums.silverlight.net//28.aspx/1?Report+a+Silverlight+BugFound a bug in Silverlight? Use this forum to describe the bug and the code or steps to reproduce it.Mon, 01 Jan 0001 00:00:00 -05002880924http://forums.silverlight.net//p/22913/80924.aspx/1?ASP+NET+MediaPlayer+Control+and+Install+Silverlight+PromptASP.NET MediaPlayer Control and Install Silverlight Prompt <p>I posted the following in Visual Studio Development Tools before I noticed the bug report forum. I apologize for the multiple postings.</p> <p>----</p> <p>I just wanted to mention that when using the ASP.NET MediaPlayer wrapper tool, it does not display the Install Silverlight prompt if the Silverlight version is not installed in the browser.</p> <p>To workaround this situation, I added an instance of the ASP.NET Silverlight wrapper control at the top of the page, with the width and height set to 0. This forces the&nbsp;Install Silverlight prompt to display&nbsp;when required. Not a major&nbsp;problem but I wanted to mentioned it, as to appears to be a bug in the MediaPlayer control.</p> <p>Also, I noticed that the Silverlight control does not require a hyperlink in the Not Installed Template to display the prompt. Is hardwiring that link in the dll wise, considering&nbsp;the link&nbsp;may change in the future?</p> <p>&nbsp;</p> 2008-08-15T09:29:11-04:0081027http://forums.silverlight.net//p/22913/81027.aspx/1?Re+ASP+NET+MediaPlayer+Control+and+Install+Silverlight+PromptRe: ASP.NET MediaPlayer Control and Install Silverlight Prompt <p>Well, I have an interesting update on this.</p> <p>In order to check the Not Installed functionality, I was following Tim Heuer's suggestion of disabling the Silverlight plugin in the browser. When you do that, for some reason&nbsp;the MediaPlayer control does not insert the Install Silverlight prompt, but the Sliverlight control does insert the prompt.</p> <p>If you completely uninstall Silverlight, however, the MediaPlayer control works properly, showing the Not Installed prompt.</p> <p>So, I suppose the lesson here is always completely uninstall Silverlight when checking whether the Not Installed functionality is working properly.</p> <p>&nbsp;</p> 2008-08-15T18:36:54-04:0081843http://forums.silverlight.net//p/22913/81843.aspx/1?Re+ASP+NET+MediaPlayer+Control+and+Install+Silverlight+PromptRe: ASP.NET MediaPlayer Control and Install Silverlight Prompt <p>Hi Fchateau,</p> <p>It has not been fixed now.&nbsp;&nbsp; However, we can use javascript to get the Silverlight plug-in and then get its version.&nbsp;&nbsp; Below is a sample.&nbsp;<pre class="prettyprint"><SPAN class=dir>&lt;%@ Page Language="c#" AutoEventWireup="true" %&gt; &lt;%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls" TagPrefix="asp" %&gt;</SPAN> &lt;<SPAN class=tag>!DOCTYPE</SPAN> html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;<SPAN class=tag>html</SPAN><SPAN class=attr> xmlns=</SPAN><SPAN class=attrv>"http://www.w3.org/1999/xhtml"</SPAN><SPAN class=attr> style=</SPAN><SPAN class=attrv>"height:100%;"</SPAN>&gt; &lt;<SPAN class=tag>head</SPAN><SPAN class=attr> runat=</SPAN><SPAN class=attrv>"server"</SPAN>&gt; &lt;<SPAN class=tag>title</SPAN>&gt;Test Page For CalendarStyle&lt;/<SPAN class=tag>title</SPAN>&gt; &lt;<SPAN class=tag>script</SPAN><SPAN class=attr> src=</SPAN><SPAN class=attrv>"Silverlight.js"</SPAN><SPAN class=attr> type=</SPAN><SPAN class=attrv>"text/javascript"</SPAN>&gt;&lt;/<SPAN class=tag>script</SPAN>&gt; &lt;<SPAN class=tag>script</SPAN><SPAN class=attr> type=</SPAN><SPAN class=attrv>"text/javascript"</SPAN><SPAN class=attr> language =</SPAN><SPAN class=attrv>"javascript"</SPAN>&gt; function test(){ var version = "2.0.30523.8"; var isInstalled = Silverlight.isInstalled(version); if(isInstalled) alert("Silverlight has been installed"); else alert("not installed!"); } &lt;/<SPAN class=tag>script</SPAN>&gt; &lt;/<SPAN class=tag>head</SPAN>&gt; &lt;<SPAN class=tag>body</SPAN><SPAN class=attr> style=</SPAN><SPAN class=attrv>"height:100%;margin:0;"</SPAN>&gt; &lt;<SPAN class=tag>form</SPAN><SPAN class=attr> id=</SPAN><SPAN class=attrv>"form1"</SPAN><SPAN class=attr> runat=</SPAN><SPAN class=attrv>"server"</SPAN><SPAN class=attr> style=</SPAN><SPAN class=attrv>"height:100%;"</SPAN>&gt; &lt;<SPAN class=tag>asp:ScriptManager</SPAN><SPAN class=attr> ID=</SPAN><SPAN class=attrv>"ScriptManager1"</SPAN><SPAN class=attr> runat=</SPAN><SPAN class=attrv>"server"</SPAN>&gt;&lt;/<SPAN class=tag>asp:ScriptManager</SPAN>&gt; &lt;<SPAN class=tag>div</SPAN><SPAN class=attr> style=</SPAN><SPAN class=attrv>"height:100%;"</SPAN>&gt; &lt;<SPAN class=tag>asp:Silverlight</SPAN><SPAN class=attr> ID=</SPAN><SPAN class=attrv>"Xaml1"</SPAN><SPAN class=attr> runat=</SPAN><SPAN class=attrv>"server"</SPAN><SPAN class=attr> Source=</SPAN><SPAN class=attrv>"~/ClientBin/CalendarStyle.xap"</SPAN><SPAN class=attr> MinimumVersion=</SPAN><SPAN class=attrv>"2.0.30523"</SPAN><SPAN class=attr> Width=</SPAN><SPAN class=attrv>"100%"</SPAN><SPAN class=attr> Height=</SPAN><SPAN class=attrv>"100%"</SPAN><SPAN class=attr> OnPluginLoaded=</SPAN><SPAN class=attrv>"test"</SPAN>/&gt; &lt;/<SPAN class=tag>div</SPAN>&gt; &lt;/<SPAN class=tag>form</SPAN>&gt; &lt;/<SPAN class=tag>body</SPAN>&gt; &lt;/<SPAN class=tag>html</SPAN>&gt;</pre> </p> <p>Best regards,</p> <p>Jonathan&nbsp;</p> <p>&nbsp;</p> 2008-08-19T09:43:49-04:00