Click here to Skip to main content
16,012,468 members

Comments by Member 10021658 (Top 54 by date)

Member 10021658 14-Dec-15 4:19am View    
<table style="border: 1px solid #c1650f; width: 35%; padding: 10px 0px 10px 10px"
cellpadding="0">
<asp:Repeater ID="Repeater2" runat="server">
<itemtemplate>
<tr align="right">
<td>
<asp:Label ID="Label1" runat="server" Text='<%#Eval("SName")%>' />
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label4" runat="server" Text='<%#Eval("Address")%>' />
<asp:Label ID="Label3" runat="server" Text='<%#Eval("Phone") %>' />
</td>
</tr>



</table>

Here I want to display three columns data like SName, Address and Phone. If Student don't have phone number that row should be displayed on SName data, at same time Address and Phone numner is disabled. Thanks
Member 10021658 14-Dec-15 4:02am View    
Deleted
Dear Sinisa, Thanks for your reply. I have already used where condition. But I need to display SName always and disable the address if Phone is null.
O/p
SName Address Phone
Sai Bglr 1234567890
Alex (Alex don't have phone so address data is disabled)


Thanks
Member 10021658 14-Dec-15 4:00am View    
Dear Sinisa, Thanks for your reply. I have already used where condition. But I need to display SName always and disable the address if Phone is null.
O/p
SName Address Phone
Sai Bglr 1234567890
Alex (Alex don't have phone so disabled the address data)
Raju hyd 1245678990

Thanks
Member 10021658 14-Dec-15 3:58am View    
Dear Sinisa, Thanks for your reply.
Thanks
Member 10021658 23-Jul-15 3:23am View    
Thanks Suvendu Sekhar.
It's working fine. Thanks once again