Rich Web client development with ASP.NET ,LINQ , WCF and now Silverlight2

Tuesday, June 02, 2009

Silverlight Host Page QueryString

One of the things you will want to do at some point is get access to the query string parameters passed to the page hosting your Silverlight application.

private void Application_Startup(object sender, StartupEventArgs e)
{
string test;
if (HtmlPage.Document.QueryString.Count > 0)
test = HtmlPage.Document.QueryString["fid"] ;
this.RootVisual = new Page();
}

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home