Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start VS2010 silverlight debugging session with custom URL parameters

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.

like image 784
KdgDev Avatar asked Jun 14 '11 14:06

KdgDev


1 Answers

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).

like image 91
Gone Coding Avatar answered Sep 21 '22 20:09

Gone Coding