S
sanju
Hi,
I am struggling to find a way to bind image to gridview template field based
on the bool value of database field.
my requirement is ..
i have a field "IsNewMessage" in "Messages" table .
and i am binding data to gridview "sqldatasource". I want to display
"NewMessage.gif" if the database fieldvalue is True or else
"OldMessage.gif" .
<asp:templatefield headertext="Received From">
<itemtemplate>
<asp:label id="lblName"
text= '<%# Eval("IsNewMessage") %>'
runat="server"/>
</itemtemplate>
<ItemStyle Width="100px" />
Thank you
sanju
I am struggling to find a way to bind image to gridview template field based
on the bool value of database field.
my requirement is ..
i have a field "IsNewMessage" in "Messages" table .
and i am binding data to gridview "sqldatasource". I want to display
"NewMessage.gif" if the database fieldvalue is True or else
"OldMessage.gif" .
<asp:templatefield headertext="Received From">
<itemtemplate>
<asp:label id="lblName"
text= '<%# Eval("IsNewMessage") %>'
runat="server"/>
</itemtemplate>
<ItemStyle Width="100px" />
Thank you
sanju