I Have a ListView, and iam trying to change the Background of a Row on a condition,if a "UserID" value is 1 it shows yellow in the background of the cell, if the "UserID" value is 2 the background is  Green , the problem is when there are multiple posts with same "UserID" it gives error
System.NullReferenceException was unhandled by user code HResult=-2147467261 Message=Object reference not set to an instance of an object. Source=Dream

<ItemTemplate > <table id="TestTable" runat="server"> <tr id="TestRow" runat="server"> <td id="TestData" runat="server"> Name: <asp:Label ID="Label1" runat="server" Text='<%# Eval("Name") %>' ...

Go to the complete details ...