What is the best way to link silverlight and ASP.NET controls

I thought that I was asking more experienced Silverlight users what they thought was the best way to embed Silverlight custom elements on an ASP.NET page — in particular, to make it easy to exchange messages between the controls.

I heard about services, query strings, etc., but I would like to know what has worked for you so far ...

+3
source share
2 answers

Take a look at the WCF RIA services. This enables ASP.NET to expose methods and data objects and automatically expose them to Silverlight. RIA Services creates proxies on the Silverlight side and connects them to WCF services without having to do any work. It is pretty smooth.

Here is the starting point. Beware: the learning curve is pretty steep. But it is useful after you get there.

http://www.silverlight.net/getstarted/riaservices/

In addition, another thing to keep in mind is that some of these articles relate to beta / CTP versions, and some of the namespaces were changed before they went into production.

+2
source

Source: https://habr.com/ru/post/1758392/


All Articles