Hi,
Try this:
HTML:(In the item template of your gridview)
<asp:linkbutton id="lnkEdit" runat="server" text="Edit" commandname="Edit"/>
<asp:linkbutton id="lnkEdit" runat="server" text="Edit" commandname="Delete"/>
Code Behind:
if (e.CommandName=="Edit")
{
}
else if (e.CommandName=="Delete")
{
}
--Amit