如何在弹出窗口中渲染用户控件 [英] How to Render User control in Popup window
本文介绍了如何在弹出窗口中渲染用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的问题是我使用一些asp:按钮创建了一个用户用户控件,我想在按钮点击事件中将该ascx页面打开到一个弹出窗口。
i需要用javascript或c#代码来渲染用户控件
请帮助一下
提前感谢
My problem is that i created a user user control with some asp:button and i want to open that ascx page into a popup window on button click event.
i want code in javascript or in c# to render that user control
please some one help
thanks in advance
推荐答案
你无法直接显示UserControl
在 Popup 中。你可以做的是,在 Popup 上显示一个aspx
页面,其中已包含ascx
页面。
You cannot directly show anUserControl
in a Popup. What you can do is, show oneaspx
page on the Popup, which already includes theascx
page in it.
这篇关于如何在弹出窗口中渲染用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文