What about put ID
in query string like so.
<HyperlinkButton
x:Name="btn" /**other properties**/
NavigateUri="http://www.yoururl.com/details.aspx?ID=1234">
</HyperlinkButton>
in Details.aspx
you can put ID in initParams
property of silverlight object
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="initParams" value='<%= GetID() %>' />
</object>
in Details.aspx.cs
, code behind of Details.aspx
, you fill the initParams like so
public string GetID(){
return string.Format("ID={0}", Request.QueryString[0]);
}
then, you can read the ID from your silverlight application startup
private void Application_Startup(object sender, StartupEventArgs e)
{
int ID = Convert.ToInt32(e.InitParams["ID"]);
}