My goal is to show the serach results in a grid view on a model popup after the user enters the search criteria on a page and presses the search button. The OnClick event handler needs to collect the search criteria, get the dataset after querying the database and bind the data to the gridview before displaying the modal popup.
My problem is that the search button's id can't be assigned to the TargetControlID of the ModalPopupProperties as it will not let the OnClick event be fired and process the postback.
Please suggest the solution/workaround.
Thanks much
Display the ModalPopup via script instead?David,
Do you have an example or a sample of the script that I can take a look at?
The other option would be to dynamically create the popup, after I process my search funcationility. But the question is, how do I invoke the display of the popup after associating the TargetID of the search button to the dynamically created ModelPopup?
Thanks for looking into it.
Vijay
I believe the following post outlines how to display the ModalPopup with script:http://forums.asp.net/thread/1280980.aspx
No comments:
Post a Comment