Posted on: 1/11/2014 1:15:02 PM | Views : 606

I have class structure like below
public class book { public book { bookcategory=new List<bookcategorytype>(); } public string bookname {get;set;} public List<bookcategorytype> bookcategory; public string defaultgenre {get;set;} } Now i am bind this class with my listview which has nested datalist in it and now am trying to set visible of the row based on the bookcategory being null.
like below
<table style="width: 550px;"> <tr valign="top" visible='<%#Eval("bookcateogry")==null ? true:false %>'> <td> <a>category:</a> </td> <td> <asp:Label ID="lblcat" runat="server" Text='<%#Eval("defaultgenre") %>'></asp:Label> </td> </tr> <tr visible='<%#Eval("bookcateogry")==null ? true:false %>'> ...

Go to the complete details ...