显示模态弹出窗口的动态用户控件 [英] show Dynamic user control on modal Popup
本文介绍了显示模态弹出窗口的动态用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我很难想到这个,
我有一个用户控件
Hi
I'm having a hard time thinking about this,
I have a user Control
Dim UCBranch As BranchController = LoadControl("~/UserControl/BranchController.ascx")
UCBranch.Visible = True
UCBranch._Load = Branch.Load(Account)
如何在我的Modal popUp Extender中显示/显示动态用户控件
谢谢
How can I display/Show Dynamic User Control in my Modal popUp Extender
Thanks
推荐答案
首先将地址加载到用户控件
Load first the address to the user control
UserControlName = LoadControl("~/FileName")
然后将用户控件加载到面板
then load the user control to the panel
PanelName.Controls.Add(UserControlName)
然后将面板显示为模式弹出窗口:)享受
Then show the panel as your modal pop up :) Enjoy
这篇关于显示模态弹出窗口的动态用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文