Imagine an ASP.NET data input form with a "client" entry field. The dataset of possible clients numbers in the millions. What I would like to do is put an asp:LinkButton control labeled "Look-up Client" on the form which would launch a modal AJAX form allowing the user to search by fields such as last/first name, address, phone, etc, and display a grid of clients matching the search parameters, from which the user would select a client and the modal form goes away and the LinkButton then reads something like "John Smith (click for more info)" and the clientID is stored to a non-visible form field.
My plan was to use an ASP:UpdatePanel linked to a ModalPopupExtender control but the problem I'm running into is that anytime an ASP:Button control is clicked on the ModalPopupExtender form (1) it doesn't seem to actually run the code-behind code (breakpoints aren't being hit), and (2) the modal window goes away even though the button clicked isn't the OkControlID or CancelControlID.
With all of that as background, my question is this: How do I achieve what I've described here? Am I even on the right track, or am I trying to do something that is beyond the scope of the ModalPopupExtender control? (And if the latter is the case, what is the right way to do it?)