我在GridView中<ItemTemplate> 加入了两个ImageButton,怎么用这两个按钮响应事件?
<asp:GridView ID= "ArtclieView " runat= "server " CellPadding= "4 " ForeColor= "#333333 "
GridLines= "None " AutoGenerateColumns= "False " OnRowDataBound= "ArtclieView_RowDataBound " Width= "100% ">
<Columns>
<asp:TemplateField HeaderText= "操作 ">
<ItemStyle Width= "40px " HorizontalAlign= "Right " />
<ItemTemplate>
/*******在这里*************************/
<asp:ImageButton ID= "ImRe " ImageUrl= "~/images/re.gif " runat= "server " AlternateText= "还原 " />
<asp:ImageButton ID= "ImDel " ImageUrl= "~/images/del.gif " runat= "server " AlternateText= "删除 " />
/*********************************/
</ItemTemplate>
<HeaderStyle CssClass= "mainGrid " />
</asp:TemplateField>
</Columns>
</asp:GridView>
我在GridView中 <ItemTemplate> 加入了两个ImageButton,怎么用这两个按钮响应事件?
------解决方案-------------------- <asp:ImageButton ID= "ImRe " onclick= ' ' ImageUrl= "~/images/re.gif " runat= "server " AlternateText= "还原 " />
<asp:ImageButton ID= "ImDel " ImageUrl= "~/images/del.gif " runat= "server " AlternateText= "删除 " />