Since ASP Extensions includes MVC Website development and Silverlight, I would have hoped that these technologies are compatible.
Has anyone managed to combine these by serving up Silverlight Controls page, from an MVC View.
It does not seem at all clear, and I am having problems. I does not looks as though createSilverlight javascript function is working correctly. I Guess Client side Javascript is getting confused with the pages Code Behind (Needed for inheritence of ViewPage)
needing to be run Server side.
Shame that these combining these two technologies seems to be such a pain.
While silverlight is no longer recommended for browser developement (no windows 8 rt support, and only desktop IE support in x86 windows 8), in practice it just an active/x control hosted by the IE. html produced by MVC will host it the same as html produced
by webforms. silverlight interaction with iE's javascript is the same.
silverlight is designed to call wcf webservices, not webapi, or mvc action, but you can call actions drectly using silverlight webclient or HttpWebrequest.
JuliasW00
Member
7 Points
14 Posts
Any one Served up Silverlight View yet ?
Feb 12, 2008 11:02 PM|LINK
Since ASP Extensions includes MVC Website development and Silverlight, I would have hoped that these technologies are compatible.
Has anyone managed to combine these by serving up Silverlight Controls page, from an MVC View.
It does not seem at all clear, and I am having problems. I does not looks as though createSilverlight javascript function is working correctly. I Guess Client side Javascript is getting confused with the pages Code Behind (Needed for inheritence of ViewPage) needing to be run Server side.
Shame that these combining these two technologies seems to be such a pain.
Cheers
Jules
ignatandrei
All-Star
134535 Points
21583 Posts
Moderator
MVP
Re: Any one Served up Silverlight View yet ?
Nov 18, 2012 08:45 PM|LINK
MVC have not code behind.
More, you can put silverlight code in a HTML regular page - so more with MVC ViewPage
What asp extensions are you talking about?
bruce (sqlwo...
All-Star
36656 Points
5438 Posts
Re: Any one Served up Silverlight View yet ?
Nov 18, 2012 09:02 PM|LINK
While silverlight is no longer recommended for browser developement (no windows 8 rt support, and only desktop IE support in x86 windows 8), in practice it just an active/x control hosted by the IE. html produced by MVC will host it the same as html produced by webforms. silverlight interaction with iE's javascript is the same.
silverlight is designed to call wcf webservices, not webapi, or mvc action, but you can call actions drectly using silverlight webclient or HttpWebrequest.