When I debug a Silverlight app, Visual Studio will just open the page with no extra URL parameters.
So, the url will look something like this: http://localhost:65351/MyApp/
However, I want to add some specific functionality when someone navigates to the pages with extra parameters in the URL. For instance: http://localhost:65351/MyApp/A2Sk9zu
That being a shortened link, which my app will interpret.
I get that I can access the URL paremeters via HtmlPage.Document.QueryString.Keys
but I can't seem to start a debugging session with any parameters to actually check if the flow is handled correctly.
On your .web project, hosting the Silverlight app, right click and select "Properties".
Under "Web" there is a "Start action" section. Under "Start action" it will probably be set to "Specific page" and shows your start hosting page. e.g. Default.aspx
Just change the URL there to add your parameters e.g. Default.aspx?test=123
(Of course the alternative is to just change the URL of your browser by hand, once the app has started).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With