Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit how to access the codebehind function in javascript
2 replies. Latest Post by Mog Liang - MSFT on August 17, 2009.
(0)
bobbby
Member
53 points
173 Posts
08-11-2009 5:07 AM |
var slhost = document.getElementById("Xaml1"); slhost.content.SilverlightLearn.GetDoubleValue();----here unknown exception is coming
i given this in code behind
{
}
id name Xaml1 also i given correctly
i don't know why unknown exception is coming
how to solve that
ssenthil
501 points
108 Posts
08-11-2009 6:01 AM |
From where you are calling that javascript function
check any errors in javascript function
Mog Lian...
All-Star
15884 points
1,541 Posts
08-17-2009 3:34 AM |
Hi,
bobbby: var slhost = document.getElementById("Xaml1"); slhost.content.SilverlightLearn.GetDoubleValue();----here unknown exception is coming
This is not right way to invoke method. Please follow this article
Walkthrough: Calling Managed Code from JavaScript
Thanks,