How to, call a c# function in code behind of parent page from silverlight plugin on that page?
- aspx page ASPX
- silverlight plugin SL on ASPX page
I开发者_如何学Go wrote a method in C# on an ASPX page as a C# script.
How do I call the C# method on a button click in Silverlight?
When you're interacting with your Silverlight app on the client it technically doesn't matter where the ASPX page and the Silverlight app are. I believe you will need to set up the aspx code behind to be used as a WebMethod
and use silverlight to interact with it just like you would if you were using AJAX.
I imagine a Google search would turn up tutorials on how to consume a web service, which shouldn't be any different then doing it in your code behind of your aspx page.
精彩评论