N
.NET Developer
Ok, this is probably simple but it's been driving me nuts.
If I have a URL like this: http://www.mysite.com/MyPage.aspx?MyKey
What code would I write to get that value "MyKey" out of the querystring?
Without the = and a value after it, is it considered a querystring value
still? I've tried Request.Params[0], Request.QueryString.Key[0], and nothing
is returning the value to me. I've driven down several levels into the
debugger and found the value (nested several object hierarchy levels deep)
but can't figure out how to get access to it.
Help?
If I have a URL like this: http://www.mysite.com/MyPage.aspx?MyKey
What code would I write to get that value "MyKey" out of the querystring?
Without the = and a value after it, is it considered a querystring value
still? I've tried Request.Params[0], Request.QueryString.Key[0], and nothing
is returning the value to me. I've driven down several levels into the
debugger and found the value (nested several object hierarchy levels deep)
but can't figure out how to get access to it.
Help?