asp.net - Silverlight call from aspx no longer working -


i'm fixing old code uses silverlight along arcgis. silverlight portion broke on time. code that's used is:

<asp:silverlight id="xamlmain" runat="server" source="clientbin/controlpoints.xap" minimumversion="3.0.40624.0" width="100%" height="100%" /> 

and way called

function refreshcontrolpointlayer() {     var slcontrol = document.getelementbyid("xamlmain");     slcontrol.content.refreshcontrolpointslayer();     } 

i "slcontrol.control undefined." after looking silverlight call (i have no prior experience or knowledge of silverlight) found way it's being called old, changed new object way.

<object type="application/x-silverlight-2" data="data:application/x-silverlight," width="100%" height="100%">                     <param name="source" value="clientbin/controlpoints.xap" />                     <param name="id" value="xamlmain" />                     <param name="runat" value="server" />                     <param name="onerror" value="onsilivererror" />                     <param name="background" value="white" />                     <param name="minruntimeversion" value="3.0.40624.0" />                     <param name="autoupgrade" value="true" />                     <a href="http://go.microsoft.com/fwlink/?linkid=149156&v=4.0.60310.0" style="text-decoration:none">                      <img src="http://go.microsoft.com/fwlink/?linkid=161376" alt="get microsoft silverlight" style="border-style:none"/>                     </a>                 </object><iframe id="_sl_historyframe" style='visibility: hidden; height: 0px; width: 0px; border: 0px'></iframe> 

and call calling function "refreshcontrolpointslayer()." in chrome's inspector console i'm able see code

function refreshcontrolpointslayer() {           window.opener.refreshcontrolpointlayer();     return false; } 

but in firebug can is

<td align="center"> <span id="ctl00_main_gv_import_ctl21_importstatus" disabled="disabled"      style="color:red;"></span> </td><td>10x</td><td>5570.47000</td><td>1244.33900</td><td>473.69900</td><td>brk-10x bk 25596 pg ?? </td><td>&nbsp;</td> </tr> 

the function refreshcontrolpointslayer() doesn't show in firebug. both tell me "window.opener.refreshcontrolpointslayer not function." i've opened xap file contained dll's.

am calling silverlight object wrong? has ever had similar happen them? 1 off top of there head know how should call xap file aspx page can use it's functions? thank help.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -