title: How to get the ID from URL?
body: <p>I am using asp.net MVC.</p>
  
  <p>I have edit page url like {controller}/Edit/2 </p>
  
  <p>so on the <strong>view page</strong> how can I get the ID from this URL?</p>
  
  <p>I'm gonna put a link to redirect to some page with sending above ID.</p>
  
  <p><strong>EDIT</strong>
  Like</p>
  
  <pre><code>&lt;%=Html.ActionLink("name", "Action", "Controller", new{ ID = ? } ) %&gt;
  </code></pre>