I need to print out the querystring value "?type=xxx" inside my .aspx-page, why doesn't this work:
<%= Request.QueryString("type") %>
While this does:
<%= Request.QueryString(0) %>
The first prints out nothing, the second one prints out the value as expected, but it isn't always the first value I want...
Any ideas?
I redirect to "modrewrite.aspx" on 404-errors on the Custom Errors tab in IIS and then pick up the correct page depending on what whas asked for. However, it's strange it works with the indexed and not named value...
I've managed to figure out an odd solution; If I put a dummy value first, then I can pick my value up as expected.
This works: "?dummy=value&type=xxx" Now I can collect the value with <%= Request.QueryString("type") %>