Reputation: 607
I'm planning on hosting a Silverlight application in ASP.NET 2.o web application. The web app has to keep on targeting 2.0 framework for the foreseeable future. That rules out the Silverlight control as that would force me to upgrade my web app to 3.5.
Fortunately, I can take the approach of adding the control with html
My question is how can i programatically set the InitParams for the Silverlight app when I take this approach.
Upvotes: 0
Views: 89
Reputation: 4311
When you say programmatically, do you mean you still want the server to set some values? Consider a LiteralControl and have it replace with the:
<param name="initparams" value="foo" />
Where you need it, so it might look something like this:
<object...>
...
<asp:Literal id="initParamsPlaceholder" runat="server" />
</object>
Upvotes: 3