title: Getting the names of previous action and controller in MVC controller
body: <p>I can get the name of the current action and controller like this:</p>
  <pre><code>string controllername = this.ValueProvider.GetValue(&quot;controller&quot;).RawValue.ToString();
  string actionname = this.ValueProvider.GetValue(&quot;action&quot;).RawValue.ToString();
  </code></pre>
  <p>And I can also get the referring URL with something like this:</p>
  <pre><code>string MyReferrer = Request.UrlReferrer.ToString();
  </code></pre>
  <p>But how can I get the names of previous action and controller in an MVC 2 controller?</p>