如何使用Modalpopupextender在服务器端获取对话框结果? [英] How to get dialog result in server side using Modalpopupextender?

查看:90
本文介绍了如何使用Modalpopupextender在服务器端获取对话框结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我正在使用modalpopupextender进行modaldialog.I想知道用户是否在服务器端单击了OkcontrolId或CancelControlId.基于此我将加载另一个弹出窗口.
谁能帮我.

这是示例代码.

Hi All

I am using modalpopupextender for modaldialog.I want to know whether the user clicked OkcontrolId or CancelControlId in server side.Based on this i will load another popup.
Can anyone help me.

Here is sample code.

<asp:ModalPopupExtender ID="ModalPopupCancelEnrollment" BehaviorID="ModalPopupCancelEnrollment" runat="server" TargetControlID="btnCancelEnroll" PopupControlID="pnlCancelEnrollment"OkControlID="btnYes" CancelControlID="btnNo" BackgroundCssClass="modalBackground" DynamicServicePath="" Enabled="True" />

推荐答案

在这里看一下文章. Asp.Net GridView控件中的Ajax ModalPopup扩展器 [
Take a look at the article here. Ajax ModalPopup Extender in Asp.Net GridView Control[^], it explains how to get the modal popup extender get it working for server side.


这篇关于如何使用Modalpopupextender在服务器端获取对话框结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆