Click here to Skip to main content
15,885,278 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.NET
<asp:TemplateField HeaderText="Action" >
                   <HeaderStyle width="10%" HorizontalAlign="center" CssClass="listheader" />
			          <itemstyle horizontalalign="center" />
	        	       <itemtemplate>
			          <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" />
		           </itemtemplate>


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

end sub
Posted
Updated 22-May-12 2:23am
v9
Comments
Vasim889 22-May-12 9:09am    
Try this it's really Working.
mani.kishore.asp.net 22-May-12 22:27pm    
which?

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