If there are 4 user controls Draged & Droped on a Page , then They all are loaded even if we need to show one user control at a time.
I have 1 page ... Fresh Request.aspx
and 4 user controls all are called on this page.
a) ucFreshRequestSeniorOfficers.ascx
b) ucFreshRequestJuniorOfficers.ascx
c) ucChangePassword.ascx
d) ucGenerateLicenses.ascx
When this page is loaded ... then one - by one all the user controls are called ... but i want to show only one means only "ucFreshRequestJuniorOfficers.ascx"
Loading

Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 16, 2013, 3:54 AM EDT
Sivaraman DhamodaranRank #40 · 34.5K reputationPosted Aug 16, 2013, 3:54 AM EDT
Rishi Narula4 reputationPosted Aug 16, 2013, 4:22 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 16, 2013, 6:38 AM EDT
You can load user control dynamically depend on your condition.
Dont register any user control in your aspx code
declare one place holder in your aspx
in your code
I have considered all user control are inside UserControl folder
Regards,
Iftikar