 <pre><code>&lt;asp:Label ID="lblAsgn" runat="server" Text='&lt;%# FormatText(Eval("StatusId")) %&gt;' /&gt; </code></pre> <p>where <code>FormatText</code> could be a method in your code behind:</p> <pre><code>protected string FormatText(object o) { int value; if (int.Parse(o as string, out value) &amp;&amp; value == 0) { return "NEW"; } return "OLD"; } </code></pre>