This is a migrated thread and some comments may be shown as answers.

ASP.NET Silverlight Controls

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
ManniAT asked on 13 Mar 2009, 01:20 PM

I hope I'm not in the wrong place - I think to remember there was a forum section "product suggestions" - but I could not find it anymore.
So if I placed this post wron feel free to move it.

Let me first start with the scenario I'm currently working on.
I have a website which provides (beside other things of course :)) something like the telerik "your account" page.
There I also have "days left until" progress indicator.
My page MUST run in normal HTML and don't want to force my users to install silverlight.
So I end up where I've been years ago with Flash.
Check if the addon (FlashPlayer, Silverlight) is available - if not I display my page in pure HTML.
For this I built a "linear gauge aspx usercontrol".

Now when it comes up to silverlight I hide the aspx.gauge - instead I show a silverlight control.
I think this will be a very common scenario in the next months (years). And even if MS keeps right with their assumptions (everyone will have silverlight) - we will still have the need to display HTML apps.

And even if anybody has silverlight on his box I think there will be a lot of scenarios where I don't build a full SL application.
Instead I build a traditional app - hosting some silverlight controls.

How does this look out of the box?
<myCtrl:MyThing ID="noSilver" TotalDays="300" CurrentDays="120" Visible="true"....  
<asp:Silverlight ID="gotSilver" InitParameters="TotalDays=300, CurrentDays=120"... Visible="false" 
....Page_Load(...) {  
if(IFoundSilverLight)  {  

What else do I have to do?
I add a silverlight project to my site - build a control there - place a RadGauge on this control, check the parameters I got and hand it over to the gauge.

What I think would be great is something like this:
<telerik:AspNetSilverGauge MinValue="0" MaxValue="300" Value="120" Skin="Black"... 

Maybe Gauge is not the best sample since it normally uses lots of XAML customization.
But for controls like Grid or other which provide good functionality out of the box I guess this approach could help a lot.

Currently I wrap my Silverlight in a custom apsx control so that I can achieve almost what i suggest here.
But it is a lot of (stupid implementing interfaces, scripthandler and so on) work for each and every control I want to use.

I think it would be great to have a set of telerik ASP_Silverlight controls which I just drag on my page and find them exposing the most common properties and events so that they are simply useable in an ASP.NET application.



1 Answer, 1 is accepted

Sort by
Telerik team
answered on 16 Mar 2009, 03:59 PM
Hello Manfred,

Thank you for contacting us.

Indeed the scenario you are describing (rendering Silverlight or HTML content based on the availability of the Silverlight plugin on specific user machine) will be common until there is really strong adoption of the technology.

We will forward your feedback to our developers, however, for the time being we do not have concrete plans to develop a whole suite of ASP.NET wrappers that would eliminate the need to wrap the Silverlight controls manually inside ASP user controls. In fact, there was internal discussion specifically on the RadGauge case whether such wrapper is viable option but as you correctly noted the gauge control provides and depends on the rich options available through XAML customization so it would be very hard to expose this kind of functionality in the ASP.NET user control.

Kind regards,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
General Discussions
Asked by
Top achievements
Rank 2
Answers by
Telerik team
Share this question