I'm new to JQuery Mobile so excuse me for this probably easy question.
I have a button:
<a id="btnSort" href=# data-role="button"
runat="server" onclick="Click_btnSort">Sort</a>
and code-behind event handler:
protected void Click_btnSort(object sender, EventArgs e)
{
...
}
I've got a breakpoint at the beginning of this method, however it does not fire when I click on the button.
PS. I'm not using any field validators.
Any suggestions?
<a id="btnSort" href=# data-role="button" onclick="Click_btnSort()">Sort</a>
By the way , is your method definition in JavaScript? – harsha Jun 5 at 12:09$(document).on('click', '#btnSort', function () { Click_btnSort(); });
? – Omar Jun 5 at 12:27