link button in gridview
-
I HAVE 2 GRIDS ON PAGE... in first grid there is one link button ...on click of tht , i want to bind another grid n make it visible.. but when i click on link button it gives an error error is............(__doPostBack('gdvSelectedCompanies$ctl02$lnkbtnCoName','')) <asp:TemplateField HeaderText="CoName" ItemStyle-HorizontalAlign="left" ItemStyle-Width="100px"> <ItemTemplate> <asp:LinkButton ID="lnkbtnCoName" runat="server" Target="WorkPlanAssign" Text='<%#Eval("CoName").ToString()%>' ></asp:LinkButton> <%--<asp:HyperLink ID="lnkbtnCoName" runat="server" Target="WorkPlanAssign" Text='<%#Eval("CoName").ToString()%>'></asp:HyperLink>--%> </ItemTemplate> <ItemStyle Height="8px" HorizontalAlign="Left" Width="200px" /> </asp:TemplateField>
-
I HAVE 2 GRIDS ON PAGE... in first grid there is one link button ...on click of tht , i want to bind another grid n make it visible.. but when i click on link button it gives an error error is............(__doPostBack('gdvSelectedCompanies$ctl02$lnkbtnCoName','')) <asp:TemplateField HeaderText="CoName" ItemStyle-HorizontalAlign="left" ItemStyle-Width="100px"> <ItemTemplate> <asp:LinkButton ID="lnkbtnCoName" runat="server" Target="WorkPlanAssign" Text='<%#Eval("CoName").ToString()%>' ></asp:LinkButton> <%--<asp:HyperLink ID="lnkbtnCoName" runat="server" Target="WorkPlanAssign" Text='<%#Eval("CoName").ToString()%>'></asp:HyperLink>--%> </ItemTemplate> <ItemStyle Height="8px" HorizontalAlign="Left" Width="200px" /> </asp:TemplateField>
Wat u are writing at code Behind ??