title: Tempdata,Session value become null when redirect to other action methods?
body: <p>I want to persist value through all action method I have read other post where they use session but this could not solve my problem too,any other solution. thanks.</p>
  
  <blockquote>
    <p>view </p>
  </blockquote>
  
  <pre><code> &lt;a href="@Url.Action("ViewPendingReocrd", "Dashboard")" class="fa fa-search"&gt;
             &lt;span&gt;Pending Records&lt;/span&gt;
   &lt;span class="pull-right-container"&gt;
  
         &lt;span class="label label-primary pull-right"&gt;  
                @TempData["Pending"]
         &lt;/span&gt;                       
   &lt;/span&gt;
  
    &lt;/a&gt;
  </code></pre>
  
  <blockquote>
    <p>Controller</p>
  </blockquote>
  
  <pre><code>using (SqlCommand cmd = new SqlCommand("select count(*) as count from ClaimOrder where ClaimStatus='P'", conn)) 
                  {
                      TempData["Pending"]= (int)cmd.ExecuteScalar();
                      TempData.Keep();
  
                  }
  </code></pre>