I am developing an asp.net mvc web application that makes much use of jquery and the progressive enhancement principle.
I have a requirement for a complex control that needs access to .net code in order to function (using reflection across numerous classes). The choices were to duplicate this code in javascript (auto-generate if possible), or use silverlight. I am going with the silverlight option (at least for V1).
The pre-silverlight version of my control starts life as some simple html elements that are modified by jquery into the richer version. However the examples I've seen of silverlight controls all call back to the server once the page has loaded to get their data. Or, if this data is simple, it uses the initParams parameter.
My initialisation data is much more complicated that I think initParams can work with and I don't want to call back to the server as I already have this data.
So what are my best options?