In my ListView, when user clicks on a row I want to execute the "Select" command anything that fires an event on the code behind. I want to take the user on another page. Referring to this site http://stackoverflow.com/questions/2969744/asp-net-listview-full-row-select
, I implemented the following :
<asp:ListView id="ListView1" runat="server"
DataKeyNames="ChannelId" SelectMethod="GetData"
ItemType="VincitoreCRMApplication.Models.ChannelViewModel"
OnSelectedIndexChanged="ListView1_SelectedIndexChanged" >
<ItemTemplate>
<tr id="element" onclick='<%# Page.ClientScript.GetPostBackClientHyperlink(ListView1, "Select$" + Container.DataIte ...
Go to the complete details ...