Hai .
I generated the listview with tiles Layout. And Inserted a BUTTON.
I wanted to get a value by clicking this button.
but
ERROR MESSAGE
nullreferenceexception was unhandled by user code
comes up
code is used
<asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource2"
DataKeyNames="CITY" GroupItemCount="3">
<AlternatingItemTemplate>
<td runat="server" style="">
CITY:
<asp:Label ID="CITYLabel" runat="server" Text='<%# Eval("CITY") %>' />
<br />COUNTRY:
<asp:Label ID="COUNTRYLabel" runat="server" Text='<%# Eval("COUNTRY") %>' />
<br />
</td>
</AlternatingItemTemplate>
<EditItemTemplate>
<td runat="server" ...
Go to the complete details ...