I have embedded a Silverlight application in my ASP.NET page and this Silverlight application has two methods.
I want to call those methods through the ASPX page, i.e. my ASPX page has one Button control and when I click this button I want to call one of the Silverlight methods.
Is it possible? How would I do it?
You can use Javascript to make a silverlight method calls.
To permit user to access method of Silverlight from JavaScript, you have to set [ScriptableMember] attribute to that method.
If you want to invoke those methods by ASPX methods/events, you should generate Javascript that invokes the silverlight methods.
Example:
Silverlight:
ScriptableClass.cs
App.xaml.cs
index.html