Asp.net has turned out to be alot easier to use than PHP (so far). However, I have been searching for a while and simply cannot figure this out. How do I get the variables that are contained in the url of my page (that originate from a form that had the method ‘GET’) and utilize them?
For example, my page would be http://www.example.com/index.asp?somevariable=something
How would I get the value of somevariable?
You can use what ybo stated, but it isn’t complete (for VB at least). That alone could leave to a null reference exception being thrown. You want to cast (i.e. TryParse) the values, and handle any empty parameters that your expected to contain a value: