Solution:
<asp:gridview autogeneratecolumns="false" gridlines="None" id="grddoctors" runat="server">
<columns>
<asp:templatefield>
<itemtemplate>
<asp:imagebutton borderstyle="Groove" borderwidth="4" commandargument="100" commandname="DocImage" height="114" id="imgdoc" imageurl="imageurl" oncommand="img_Command" runat="server" width="100">
</asp:imagebutton></itemtemplate>
</asp:templatefield>
</columns>
</asp:gridview>
Sperate Image Event:
protected void img_Command(object sender, CommandEventArgs e)
{
//ur code here
//e.commandargument and e.commandname call here
}
No comments:
Post a Comment