title: EVAL IN C# asp.net
body: <p>i have dynamic content in a content placeholder placed in a datalist that is bound to an object datasource. the problem is i need to check the value of the EVAL. here is the code:</p>
  
  <pre><code>&lt;asp:DataList ID="DataList1" runat="server" CellPadding="4" 
                  DataSourceID="ObjectDataSource1" ForeColor="#333333"&gt;
                  &lt;AlternatingItemStyle BackColor="White" /&gt;
                  &lt;FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
                  &lt;HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
                  &lt;ItemStyle BackColor="#EFF3FB" /&gt;
                  &lt;ItemTemplate&gt;
  
  
                      &lt;a href="&lt;%# Eval("VendorLink") %&gt;"&gt; &lt;%# Eval("Vendor") %&gt;&lt;/a&gt;
                      &lt;br /&gt;
                      &lt;a href="&lt;%#    Eval("TitleLink") %&gt; "&gt;&lt;%# Eval("Title") %&gt;&lt;/a&gt;
                      &lt;br /&gt;
                      &lt;asp:Label ID="DescLabel" runat="server" Text='&lt;%# Eval("Desc") %&gt;' /&gt;
                      &lt;br /&gt;
                      &lt;asp:Label ID="DetailsLabel" runat="server" Text='&lt;%# Eval("Details") %&gt;' /&gt;
                      &lt;br /&gt;
                      &lt;asp:Label ID="RptIDLabel" runat="server" Text='&lt;%# Eval("RptID") %&gt;' /&gt;
                      &lt;br /&gt;
  
                      &lt;asp:Label ID="LinksLabel" runat="server" Text='&lt;%# Eval("Links") %&gt;' /&gt;
                      &lt;br /&gt;
                      &lt;br /&gt;
  
                  &lt;/ItemTemplate&gt;
                  &lt;SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /&gt;
              &lt;/asp:DataList&gt;
  </code></pre>
  
  <p>i want to say </p>
  
  <pre><code>&lt;%if(Eval("RptID") =="SomeString") { Eval("rtpid") = "Pass");}%&gt;
  </code></pre>
  
  <p>i need the checkup to be at the aspx page and not the aspx.cs page! how to perform the checkup??</p>