I want to check the URL parameter in my Razor markup. For example, how do I do something like this:
Noneof the answers worked for me, I was getting "'HttpRequestBase' does not contain a definition for 'Query'", but this did work:
HttpContext.Current.Request.QueryString["index"]