Modalpopup Blocking Postback on Gridview

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏