title: DataBinder.Eval(Container.DataItem in aspx inline
body: <p>I have been asked to edit a .aspx script (i'm not aspx developer)</p>
  
  <p>I need to put an if else statement from the column called PartnerStatus. If the value is True show as Active and if its false show as pending. Unfortunately i don't have access to the .dll file so i'm hoping i could add to the inline aspx script but i'm struggling. Below is snippet of the item template.</p>
  
  <pre><code>&lt;asp:Repeater ID="PartnerList" runat="server"&gt;
  &lt;ItemTemplate&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;asp:Button ID="btnView" runat="server" CssClass="blBtn" CommandName="View" CommandArgument='&lt;%# DataBinder.Eval(Container.DataItem,"PartnerID") %&gt;' OnClick="btn_Click"  Text="Edit" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%# DataBinder.Eval(Container.DataItem,"Ref") %&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%# DataBinder.Eval(Container.DataItem,"Name") %&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%# DataBinder.Eval(Container.DataItem,"Contact") %&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%# DataBinder.Eval(Container.DataItem,"Email") %&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%# DataBinder.Eval(Container.DataItem,"Phone") %&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%# DataBinder.Eval(Container.DataItem,"PartnerStatus") %&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>