How to send value with onclick event?
I have the following button <asp:ImageButton ID="button1" runat="server" ImageUrl="~/image.jpg" CommandName = "id" CommandArgument = "1" onclick="button1_Click" /> and in code behind protected void button1_Click(object sender, ImageClickEventArgs e) { Response.Write(e.commandName); } this does not work!!, So ...