views:

24

answers:

1

Hi I want to know if there is a way using C# to get the Current Silverlight Version a user is running when opening a client of an app im developing.

Its for logging purposses.

I want to know if they are using silverlight 3 or 4 on their browsers

A: 

Using C# only I don't know, but what you could do is detect it with javascript and then send an ajax request to a function which lets the server know what version.

http://www.apijunkie.com/APIJunkie/blog/post/2009/04/How-to-programmatically-detect-Silverlight-version.aspx

The script above needs a bit of modifications to work with 4.0 but it should be easy enough.

Paul