Populating initParams of SliverLightControlHost - How?

Populating initParams of SliverLightControlHost - How?

Old forum URL: forums.lhotka.net/forums/t/8035.aspx


Jav posted on Monday, November 23, 2009

I am sending a set of parameters into the SilverlightTestPage.aspx as a QueryString, which I would like to insert as the value of initParams param of Silverlight control in the PageLoad event of this page. I have what I need in the PageLoad event, but I can't seem to access the initParams to set its value. Okay, it's embarrassing.

Would appreciate a hint or two. Thanks.

sergeyb replied on Monday, November 23, 2009

I wrote a blog post on how to do this a while ago, in case you are interested.

http://dotnetspeak.com/index.php/2009/10/dynamically-setting-initialization-parameters-in-silverlight-application/


Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

-----Original Message-----
From: Jav [mailto:cslanet@lhotka.net]
Sent: Monday, November 23, 2009 4:14 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Populating initParams of SliverLightControlHost - How?

I am sending a set of parameters into the SilverlightTestPage.aspx as a QueryString, which I would like to insert as the value of initParams param of Silverlight control in the PageLoad event of this page. I have what I need in the PageLoad event, but I can't seem to access the initParams to set its value. Okay, it's embarrassing.

Would appreciate a hint or two. Thanks.

Jav replied on Tuesday, November 24, 2009

Fantastic. Just what the doctor ordered. Thanks

Javed

Copyright (c) Marimer LLC