If you want to pass initialize parameters to Silverlight application from an HTML/ASPX page, you have to find the place where your Silverlight control is inserted into the page using ASP.NET 3.5 Silverlight control and insert the InitParameters attribute as shown in the code snippet.
HTML
<asp:Silverlight .... InitParameters="param1=value1,param2=value2" />
As you can see you have to insert one new attribute InitParameters into the <asp:Silverlight> element. The syntax for parameters definition is pretty straightforward - you just have to enumerate all parameters and their values separated by commas like this: "parameter1=value1,parameter2=value2,parameter3=value3". Once the initialize parameters have been defined, you can obtain them in your application startup event handler using the InitParams property of the StartupEventArgs like this:
C#
private void Application_Startup( object sender, StartupEventArgs e )
{
//... Other code here ...
string param1Value = e.InitParams[ "param1" ];
}
That's it!