Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am making an XNA game using Silverlight over the web. My testpage.aspx is linked to from a previous page where the client selects certain elements. The testpage.aspx URL changes depending on what I have sent to it. Now in my mainpage.cs file I would like to call certain functions depending on what was passed, but I am unsure how to manipulate or even access the URL. Is there a specific class in the Silverlight library I can use?

Thank you for your time.

share|improve this question

closed as off-topic by Josh Petrie Jan 8 '14 at 16:16

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Programming questions that aren't specific to game development are off-topic here, but can be asked on Stack Overflow. A good rule of thumb is to ask yourself "would a professional game developer give me a better/different/more specific answer to this question than other programmers?"" – Josh Petrie
If this question can be reworded to fit the rules in the help center, please edit the question.

Try reading the URL parameters like

Also, it would be a good idea to make sure that the URL isn't visible to the players unless you're fine with players cheating by changing the URL themselves.. (assuming that there is any chance to do it) in which case hiding the parameters in a session might help.

Hope this helps. :)

share|improve this answer
Don't worry about the question being from 2012. Maybe the original asker won't be wondering about this anymore, but questions are timeless and good answers are always OK. There's even a silver badge for giving an old question a good answer. – doppelgreener Oct 10 '13 at 11:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.