How can I pass ASP.NET querystring value to silverlight 2 control?

I have an ASP.NET page. I want to do this in the id field that is in the request.

So if my page

http://www.mysite.com/default.aspx?id=35

I want the silverlight control that is on this page to have access to the id field. My silverlight control is collecting data for a grid and needs to use an id.

0


source to share


2 answers


While this covers the concept in startup options (which is perhaps what you are doing), there is a workaround here. http://silverlight.net/learn/learnvideo.aspx?video=72312



+5


source


You can use HTML DOM Bridge for this:



using System.Windows.Browser;

string queryString = HtmlPage.Document.DocumentUri.Query;

      

+6


source







All Articles