Dear Sir,
I Want to display "YES image " and "NO image" while gridview cell value "YES" and "NO" in grid view row.
If , " fn " , NO then display "NO image"
If , " fn " , YES then display "YES image" in gridview cell.
<%@ Page Language="C#" AutoEventWireup="true" Codefile="indx.aspx.cs" Inherits="hsptl.indx" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<table class="auto-style1" border="1" align="center">
<tr>
<td class="auto-style2">
<strong>
<img alt="munpl" class="auto-style3" longdesc="logo" src="img/munpl_logo.png" /></strong><span class="auto-style7">
</span><span class="auto-style9">
<strong>AAROGYAM HOSPITAL, MUNPL MEJA <br />
Srijan Vihar NTPC Meja<br />
</strong></span></td>
</tr>
<tr>
<td class="auto-style5"><span class="auto-style7"><strong>
<asp:Label ID="Label2" runat="server" CssClass="auto-style19" Text="Label"></asp:Label></strong></span> </td>
</tr>
<tr>
<td class="auto-style5"><strong><span class="auto-style9">DOCTOR's AVAILABILITY</span></strong> </td>
</tr>
<tr>
<td class="auto-style10">Regular Doctors :</td>
</tr>
<tr>
<td class="auto-style5">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" EmptyDataText="***No Doctor Is Available ToDay.***"
Height="400px" Width="1840px" CssClass="auto-style19" >
<Columns>
<asp:BoundField ItemStyle-Width="150px" DataField="doc_nm" HeaderText="NAME" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="spl" HeaderText="SPL." >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="room" HeaderText="ROOM" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="fn" HeaderText="FN" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="an" HeaderText="AN" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
</Columns>
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle ForeColor="Black" BackColor="#DEDFDE" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#594B9C" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#33276A" />
</asp:GridView>
</td>
</tr>
<tr>
<td class="auto-style8">
<strong>Visiting Doctors :</strong></td>
</tr>
<tr>
<td class="auto-style5">
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" EmptyDataText="***No Doctor Is Available ToDay.***"
Height="200px" Width="1840px" CssClass="auto-style19" >
<Columns>
<asp:BoundField ItemStyle-Width="150px" DataField="doc_nm" HeaderText="NAME" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="spl" HeaderText="SPL." >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="room" HeaderText="ROOM" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="fn" HeaderText="FN" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="an" HeaderText="AN" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
</Columns>
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle ForeColor="Black" BackColor="#DEDFDE" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#594B9C" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#33276A" />
</asp:GridView>
</td>
</tr>
<tr>
<td class="auto-style11">
<strong><span class="auto-style9">AD-HOC Consultant :</span></strong>
</td>
</tr>
<tr>
<td class="auto-style5">
<asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" EmptyDataText="***No Doctor Is Available ToDay.***"
Height="200px" Width="1840px" CssClass="auto-style19" >
<Columns>
<asp:BoundField ItemStyle-Width="150px" DataField="doc_nm" HeaderText="NAME" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="spl" HeaderText="SPL." >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="room" HeaderText="ROOM" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="fn" HeaderText="FN" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
<asp:BoundField ItemStyle-Width="150px" DataField="an" HeaderText="AN" >
<ItemStyle Width="150px"></ItemStyle>
</asp:BoundField>
</Columns>
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle BackColor="#DEDFDE" ForeColor="Black" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#594B9C" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#33276A" />
</asp:GridView></td>
</tr>
</table>
</form>
</body>
</html>