I have this code on the client side:
<asp:imagebutton id="ctrlSend" runat="server" ImageUrl="Btn_New.gif" onclick="ctrlSend_Click"></asp:imagebutton>
And I have this function receiving the click:
protected void ctrlSend_Click(object sender, System.Web.UI.ImageClickEventArgs e)
This works fine however I want to add a dynamic parameter which I will calculate using Javascript on the client side and be passed to the ctrlSend_Click function.
Can somebody please explain how to do this? I have explored using CommandArgument however I believe that cannot be set via a Javascript call before hand. I want the argument to be calculated on button click.