Click here to Skip to main content
15,904,288 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i have code

oncommand doest not work to fire the function it goes to page load and stops function is not called

<asp:TemplateField HeaderText="Action" >
                   <HeaderStyle width="10%" HorizontalAlign="center" CssClass="listheader" />
			          <itemstyle horizontalalign="center" />
			          <asp:ImageButton id="deleter" ImageUrl="../images/icon_delete.gif" 
                      CausesValidation="False" runat="server"
				      AlternateText="Delete" ImageAlign="AbsMiddle" BorderStyle="None" Width="19" Height="19"
				      CommandArgument='<%# DataBinder.Eval(Container.DataItem, "c_slno") %>' 
                      OnCommand="delete_update"  CommandName="delete" />

Sub delete_update(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs)
blah blah......

end sub
Updated 22-May-12 2:23am
Vasim889 22-May-12 9:09am    
Try this it's really Working. 22-May-12 22:27pm    

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900