<div>
<b>
<%# Eval("Name") %></b></div>
<div>
$<%# Eval("id") %></div>
<asp:button ID="Button1" text="Buy" runat="server" OnClick ="Button1_Click" />
</asp:button>
In above coding am binding the nameand id in list view.. am adding a button called buy.. if i click i wanna retrieve image name and id
protected void Button1_Click(object sender, EventArgs e)
{
if (ListView1.Items.Count > 0)
{
MessageBox.Show("You click product " +);
}
}
What should be given in mesage box to show the selected image's name and id..