Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I'm having a hard time thinking about this,

I have a user Control

VB
Dim UCBranch As BranchController = LoadControl("~/UserControl/BranchController.ascx")
UCBranch.Visible = True
UCBranch._Load = Branch.Load(Account)


How can I display/Show Dynamic User Control in my Modal popUp Extender


Thanks
Posted
Updated 15-Jan-14 18:35pm
v3
Comments
JoCodes 15-Jan-14 22:39pm    
Not clear...Also , post the code you tried and having issue instead of just variable declaration.

1 solution

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
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900