开发者

How to, call a c# function in code behind of parent page from silverlight plugin on that page?

  1. aspx page ASPX
  2. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜