Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
XML
<asp:Repeater ID="repCategory" runat="server">
        <ItemTemplate >
        <%-- <h3>Fund: <%# Eval("NAME") %></h3>--%>
        <h3><asp:LinkButton ID="lnkFundas" runat="server" Text='<%# Eval("NAME") %>' CommandArgument ='<%# Eval("NAME") %>' Height="20px" Width="200px"  OnClick = "OnConfirm" /></h3>

     <div id="dd" style ="width:auto;">
            <asp:GridView ID="rep_DataSimilarToBacthid" runat="server" BackColor="White"
                                    Width="100%" Font-Size="X-Small" Font-Names="Verdana" CssClass="mobilegrid valuation footergap grid-100 tablet-grid-100" AutoGenerateColumns="false">
                                     <RowStyle BackColor="Gainsboro" />
                                    <AlternatingRowStyle BackColor="White" />
                                    <HeaderStyle BackColor="#0083C1" ForeColor="White" />
                <Columns>
                    <asp:BoundField HeaderText="fundstype" DataField="FUNDSTYPE" />
                    <asp:BoundField HeaderText="fol_n" DataField="FOL_NUM" />
                    <asp:BoundField HeaderText="schemes" DataField="SCHEMES" />
                </Columns>

            </asp:GridView>

            </div>

    </ItemTemplate>
        </asp:Repeater>



this is my code , the problem is the link button event is not firing. if i delete the grid control its working fine, but if if i using both linkbutton and gridview , the linkbutton is not firing
Posted
Updated 14-Oct-14 21:21pm
v2
Comments
Samatha Reddy G 15-Oct-14 4:50am    
what is this OnClick = "OnConfirm" are you calling client side function or server side
avelsamy 15-Oct-14 8:11am    
i m calling server side
------------------------
like this
Protected Sub OnConfirm(ByVal sender As Object, ByVal e As EventArgs)
end sub
[no name] 16-Oct-14 4:58am    
Hi,

Did you try assigning property AutoPostBack="True" to the link button. ?
avelsamy 17-Oct-14 6:21am    
no , should i give?

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