Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Repeater, Link Button, onItemCommand

$
0
0

I am trying to add link button in repeater. It was anchor tag earlier. But i was not able to call code behind from anchor tag with onclick event. So i changed it to link button but that is also not working i tried all possible ways to call the code behind from the anchor tag and link button. But no success. Can some one please help me.

     <asp:Repeater ID="Repeater1" runat="server" onitemcommand="Repeater1_ItemCommand" onitemcreated="Repeater1_ItemCreated" OnItemDataBound="rptData_ItemDataBound">      
                <ItemTemplate>
                    <li>
                  
  <%--a id="qucikLink" runat="server" href="#quick-view-container" class="quickllook inline" title="Quick View" onclick="quick_click()">Quick View</a--%>
   <asp:LinkButton ID="quickLink" runat="server" OnClick="lbtnJob_Click" href="#quick-view-container" class="quickllook inline" title="Quick View">Quick View</asp:LinkButton>
     
                      </div>
                    </li>
                 </ItemTemplate>
            </asp:Repeater>


Viewing all articles
Browse latest Browse all 23244

Trending Articles