<columns> <asp:BoundField DataField="SrNo" Visible="false" ItemStyle-ForeColor="Black"> <asp:BoundField DataField="Name" HeaderText="NAME" ItemStyle-ForeColor="Black"> <asp:BoundField DataField="Birth" HeaderText="BIRTH" ItemStyle-ForeColor="Black"> <asp:BoundField DataField="Age" HeaderText="AGE" ItemStyle-ForeColor="Black"> <asp:TemplateField HeaderText="EDIT?"> <itemtemplate> <asp:LinkButton ID="lnkEdit" ForeColor="black" CommandName="Edit" CommandArgument='<%# Eval("SrNo") %>' runat="server" Text="Edit"> </itemtemplate> <asp:TemplateField HeaderText="DELETE?"> <itemtemplate> <asp:LinkButton ID="lnkDelete" OnClientClick="return confirm('Are you sure, you want to delete Record?');return false;" ForeColor="black" CommandName="Delete" CommandArgument='<%# Eval("SrNo") %>' runat="server" Text="Delete"> </itemtemplate> </columns>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)