Click here to Skip to main content
15,887,446 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
XML
<ItemTemplate>

  <tr style="border-bottom:2px Solid Black;padding-bottom:5px; width:100%;">
  <td style="border-bottom:2px Solid Black;padding-bottom:20px; width:100%;">

  <asp:LinkButton ID="lblfrnd" runat="server" Text='<%# Bind("studentname") %>' OnClick="link_friend"></asp:LinkButton>
   </td>
   </tr>

  </ItemTemplate>


This is my html on usercontrol.ascx
I want to find onclick event of listview linkbutton on ascx.cs page
Posted
Comments
F-ES Sitecore 11-Feb-15 11:57am    
What do you mean by "find" the event?
TheKarateKid 18-Feb-15 14:19pm    
LinkButton lblfrnd = ListView.FindControl("lblfrnd") as LinkButton; in ListView_ItemCommand

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900