title: Accessing Action information in the View
body: <p>I am dynamically building a menu on my main _Layout using </p>
  
  <pre><code> @{Html.RenderAction("PageMenu", "Service");}
  </code></pre>
  
  <p>which adds an Menu Item for each page</p>
  
  <pre><code>@model int
  
  &lt;ul id="pages"&gt;
      @for (var i = 1; i &lt;= Model; i++) {
          &lt;li&gt;@Html.ActionLink("Page " + i,"Page", "Service", new { page = @i}, null)/li&gt;
      }
  &lt;/ul&gt;
  </code></pre>
  
  <p>What I need to know is which page I am actually on so that I can indicate that on the menu. Is there someway I can access the page # for the last clicked ActionLink? </p>