I have a problem with the behavior of a silverlight control in an asp.net page, control works fine within the control of IE , But in Mozilla, I get a message to install 'Microsoft Silverlight'.
After some attempts / unsuccessful sessions, I came to the conclusion that I will receive that message in Mozilla only when I have my Silverlight control in & lt; Param name = "InitParams" />
Use the ultimate if I remove the ultimate, then it's all right.
Anyone got this issue before?
ASP.Net Page Code:
& lt; Div style = "height: 100%; width: 100%;" & Gt; & Lt; Object Data = "Data: App / X-Silverlight-2," Type = "App / X-Relilite-2" width = "100%" height = "100%" & gt; & Lt; Param name = "source" value = "http: //server/domain/ClientBin/MyName.xap" /> & Lt; Param name = "onError" value = "onSilverlight error" /> & Lt; Param name = "background" value = "white" /> & Lt; Param name = "minRuntimeVersion" value = "3.0.40818.0" /> & Lt; Param name = "auto upgrade" value = "true" /> & Lt; Param name = "EnableGPU access" value = "true" /> & Lt; A href = "http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0" style = "text-decoration: none" & gt; & Lt; Img src = "http://go.microsoft.com/fwlink/?LinkId=108181" alt = "get Microsoft Silverlight" style = "border-style: none" /> & Lt; / A & gt; & Lt; / Object & gt; & Lt; Iframe id = "_ sl_historyFrame" style = "visibility: hidden; height: 0px; width: 0 pixel; range: 0px" & gt; & Lt; / Iframe & gt; & Lt; / Div & gt;
It seems that I have solved this issue. At least I have detected this problem if my Silverlight object contains' /> param.
The InitParams property works in the server side IE in any way. But in Mozilla, if InitParams property (which is a string) is zero or string. Momilla does not render silverlight application, only download silver frame.
This is very strange, because the HTML result from the .asp page is the same in every browser, anyway, if Intel has value, then all are working great. So I think, for the moment, this is the right solution, just add some dummy value to it.
No comments:
Post a Comment