In order to call a function that you created in your .HTML or .ASPX file (which hosts your Silverlight application), you need to Invoke that function by using Invoke method in System.Windows.Browser.HtmlPage namespace:
HtmlPage.Window.Invoke("yourFunction");
If you want to pass some parameter to that function, simply add the parameters to the method using comma.
HtmlPage.Window.Invoke("yourFunction", param1, param2);
Posted by Damon Serji on
22. September 2009 17:29 under:
Intermediate