Whenever i add a ModalPopup into the page set the ok controlid, cancelcontrol id and **target control id = hidden fieldId**. Databind a Gridview to some data and add a button, link template field to the gridview which causes the ItemCommand event and click that button it would do nothing. Unless you open the modalPopup and close it again.
**You can replicate the same using some sample data.**
1.Add a Gridiview with Event driven control like linkbutton, Button etc that causes Postback, RowCommand event.
2.Add a modalPopup extender. Add a panel for it. Set the targetcontrolId of the extender to Hidden field on the page.
3. Now try launching the application and Clicking the button that raises Rowcommand event. It would do nothing. I still don't understand why this happens!!
以上就是Modalpopup Blocking Postback on Gridview的详细内容，更多请关注web前端其它相关文章！