title: Alternative for ViewData and QueryString
body: <p>I have a page(a.aspx) to which im navigating from two different pages(ie there is a link in these two pages where it navigates to a.aspx)</p>
  
  <p>to differentiate from which page i was navigated to a.aspx i used the below code.</p>
  
  <p>passed Querystrings(B1,B2) to the target page as below</p>
  
  <pre><code>Html.ActionLink("test" "Testing", new { Controller = "Stats",prev="B1"},new { @class = "link",target="_self" })
  Html.ActionLink("test" "Testing", new { Controller = "Stats",prev="B2"},new { @class = "link",target="_self" })
  </code></pre>
  
  <p>and in the action of the target page controller i used the below code</p>
  
  <pre><code>ViewData["prev"] = Request.QueryString["prev"].ToString();
  </code></pre>
  
  <p>and im using this ViewData in the target page ie a.aspx.This is working fine..
  Im abit reluctant to use Query.string and ViewData for the above requirement.Please suggest any other alternative approach for the same.</p>