locked
Bind to page QueryString in XAML RRS feed

  • Question

  • Hi,

    My DomainDataSource requires a parameter. I figured out how to specify the parameter in xaml but now my problem is that the value I want to pass to that parameter is coming from the QueryString of the page. Is it possible to bind that parameters value to the pages Querystring in the xaml markup?

    Thanks

    Tuesday, August 18, 2009 11:15 PM

Answers

  • I don't think you can bind to the QueryString, but you should be able to set the value in code. This should get you started.

      DDS.FilterDescriptors.Add(new FilterDescriptor("QueryString", myQueryString)); // pseudocode, I doubt it compiles

    Kyle

    Wednesday, August 19, 2009 10:37 AM

All replies

  •  You will have to use methids of HtmlDocument class.

     See the documentation:

    http://msdn.microsoft.com/en-us/library/system.windows.browser.htmldocument.querystring(VS.95).aspx

    Wednesday, August 19, 2009 12:12 AM
  • I don't think you can bind to the QueryString, but you should be able to set the value in code. This should get you started.

      DDS.FilterDescriptors.Add(new FilterDescriptor("QueryString", myQueryString)); // pseudocode, I doubt it compiles

    Kyle

    Wednesday, August 19, 2009 10:37 AM