Accessing HTTP request string in xaml file

If the HTTP request is made to the asp web page, then the asp code can access the request string through the object Request.QueryString

.

What is a similar way to do this in XAML? For example, let's say that I wanted to write a simple XAML page that simply repeats the query string in the response. What would be the code for this?

0


source to share


1 answer


Since you are mentioning query and response strings, I am assuming you are talking about XBAPs (e.g. WPF apps hosted in a browser).

Submit your blog post:



How can I pass Querystring parameters to WPF XBAP application?

Once you've got the value ApplicationDeployment.CurrentDeployment.ActivationUri

as a string, it should be pretty trivial to pump it into a TextBlock on the page. Heck, you can link it directly if you want to go that far.

0


source







All Articles