Reputation: 5730
I'm Buiding a Silverlight 3 class library that needs to get a hold of the querystring. Now I know that in a SilverLight app, you can get a hold of it via the HtmlPage
class. This doesn't work for a Silverlight class library. In a class library used in ASP.NET you could get hold of the current context through HttpContext.Current
. Does Silverlight 3 have something like that?
How to retrieve the querystring in a Silverlight class library?
Upvotes: 1
Views: 498
Reputation: 189505
I can see no reason why HtmlPage class wouldn't work in a Silverlight class library.
You will of course need to add a reference to the System.Windows.Browser.dll
in order to use it if you haven't already done so.
Upvotes: 2