title: How to set session variable for Eval values for multiple record in database
body: <pre><code>&lt; asp:lable runat="server" ID="EmailID" Text='&lt;%#Eval("Email") %&gt;' Height="20px"  Width="150px" BorderStyle="None" Font-Bold="True"&gt;&lt;/asp:Label&gt;
  
  &lt;%# Session["Session_TaskCode"] = DataBinder.Eval(Container.DataItem, "Email")%&gt;
  </code></pre>
  
  <p>I am getting the value of Email through the <code>Session["Session_TaskCode"]</code> variable in .cs file. My problem is that I have multiple records in GridView. So, when I wanted to get the values for Email for particular records, the <code>Session["Session_TaskCode"]</code> variable takes the values of Email of the last record only.</p>
  
  <p>So, how should I take the values of Email for the different records in a session variable?</p>