c# razor url parameter from view

Viewed 137061

Why does Request["parameterName"] returns null within the view? I know I can get it from the controller but I have to make a little check in the View. I am using ASP.NET MVC 3.

5 Answers
@(HttpUtility.UrlDecode(Request.Query["parameterName"].FirstOrDefault()) ?? "")
Related