具有不同模态Popupcontrol id的模态弹出 [英] Modal Popup With different modal Popupcontrol id

查看:86
本文介绍了具有不同模态Popupcontrol id的模态弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我陷入了一个问题,最近10天我一直在努力,但我没有得到任何最佳的解决方案.请帮帮我.

问题:

我在aspx页面上注册了一个aspx页面,其中包含一个下拉列表,一个超链接,一个模式弹出扩展程序和4个用户控件.
根据下拉列表的选定值,我必须一次显示4个用户控件中的一个用户控件作为模式弹出窗口.在单击确定按钮的模式弹出窗口上,我想返回List< generic>列表.数据源到我的父页面.

但是我无法在运行时即通过服务器端代码更改模式弹出窗口的弹出控件ID.

请建议我如何才能通过其他方法完成此操作,这对我非常有帮助.
对我来说很紧急.

TIA.

Avinash

Hi All,

I have stuck in a problem and i am working on this last 10 days but i din''t get any optimal solution . please help me out.

Problem:

I have an aspx page with one dropdownlist, one hyperlink, one modal popup extender and 4 user control registered on aspx page.
On the basis of selected value of dropdownlist i have to show one user control from 4 user controls at a time as modal popup. On modal popup on click of OK button i want to return a List<generic> data source to my parent page.

But i am not able to change the popup control id of modal popup at run time i.e. by server side code.

Please suggest me how can i achive thisOR any other way to do the same thing, it would be very helpful for me.
Its very urgent for me.

TIA.

Avinash

推荐答案

最简单的方法是将4个控件插入4个不同的ModalPopup扩展器中. 根据所选的下拉值,您将显示一个面板或其他面板.

是不是很优雅的解决方案,但是它又快速又容易
the easiest thing to do is to insert the 4 Controls in 4 different ModalPopup extender.
Depending dropdown value selected, you display one panel or other.

is not very elegant as a solution, but it is quick and easy


是的,这不是一个大任务,您可以在页面中添加四个ModalPopup扩展器.
Yes,It is not a big task , you can add four ModalPopup extender in your page.


这篇关于具有不同模态Popupcontrol id的模态弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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