Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Button not firing second time

$
0
0

Hi,

I have a couple of buttons:

<asp:button runat="server" cssclass="button" text="Search" class="button" ID="btnSearch" OnClick="btnSearch_Click" /><asp:button runat="server" cssclass="button" text="Continue" class="button" ID="btnContinue" OnClick="btnContinue_Click" />

And the following jQuery:

$(document).ready(function () {$('[id*=btnSearch]').bind("click", function () {
        alert("search clicked");
    });
});

When Search button is clicked the first time, I see the alert. The form is submitted (search) and a listbox populated. But after that, any further clicks are working.

Anyone know why?


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>