Hi Michael,
Is this in a datagrid? If so, you might need a template column:
<asp:datagrid id="DataGrid1" runat="server"
autogeneratecolumns="False">
<columns>
<asp:templatecolumn>
<itemtemplate>
<asp:Label runat="server" Text='<%# iif(
DataBinder.Eval(Container, "DataItem.IntegerValue"),"Yes","No") %>'>
</asp:label>
</itemtemplate>
</asp:templatecolumn>
</columns>
</asp:datagrid>
Let us know if this helps?
Ken
Microsoft MVP [ASP.NET]
[quoted text, click to view] "Michael" <xxx.xxx.xxx> wrote in message
news:eDuFMBxCFHA.3324@TK2MSFTNGP15.phx.gbl...
> How does one format a number as follows:
>
> <> 0 : YES
> = 0: NO
>
> I've tried {0:YES;;NO} to no avail.
>
> --
> Michael White
> Programmer/Analyst
> Marion County, OR
>
>