Skip to main content

Microsoft Silverlight

Answered Question Why was the ASP Silverlight Control Deprecated?RSS Feed

(0)

Aaron Edwards
Aaron Ed...

Member

Member

39 points

61 Posts

Why was the ASP Silverlight Control Deprecated?

Anyone know why the ASP Silverlight control was deprecated?  It was so much cleaner: 1 line of code.  I've never known Microsoft to make is so we have to write more code instead of less.

Aaron

mrjvdveen
mrjvdveen

Participant

Participant

1939 points

367 Posts

Re: Why was the ASP Silverlight Control Deprecated?

 The ASP.NET Silverlight control made the default Silverlight application as it was generated by Visual Studio, dependant on IIS / ASP.NET, while this was not neccesary. To make people more aware of the possibility of hosting their Silverlight projects on pretty much any webserver they like, they took it out.

It also is more clean this way. There is just one way of embedding a Silverlight control in a page and that's through the object tag. That's much clearer to people just starting to tinker with their hosting pages.

HTH.

-------------
Please mark a post as answer if it answers your question.
Visit my blog: http://jvdveen.blogspot.com

Aaron Edwards
Aaron Ed...

Member

Member

39 points

61 Posts

Re: Why was the ASP Silverlight Control Deprecated?

Thanks for replying.

I see your point with the latter argument: having just one way to embed the control in the page does make things cleaner.

However, the first argument makes no sense, since the Silverlight ASP control only goes into an ASP.NET page, which by definition is already dependent on IIS / ASP.NET. 

However, I've discovered that, while deprecated, it's still usable.  I just added it to my toolbox by browsing to a different project's Bin folder, then I was able to drag it onto my design surface and use it as normal. 

The reason I prefer it, in addition to being less code, is that I like to pass all my Init Parameters from the code-behind, dynamically in response to various conditions.  While it is certainly possible to leave a placeholder field in the markup, e.g. <%=myInitParameters%>, and achieve the same thing, it doesn't occur as very clean to me.

Thanks for the response.

Aaron

jamlew
jamlew

Contributor

Contributor

2856 points

435 Posts

Microsoft
Answered Question

Re: Why was the ASP Silverlight Control Deprecated?

The ASP.NET control does not work with some new features in SL3, such as navigation.  The team that owns the control decided it was best to leave it circulating outside of the SDK (you can get it from the SL 2 SDK or the sources are available from this link).

---------
If this post has solved your problem, please select 'Mark as answer'

- Jimmy Lewis
Microsoft SDET
Visual Web Developer Team
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities