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
Iftikar HussainPosted Aug 16, 2013, 10:38 AM
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
Rishi NarulaPosted Aug 16, 2013, 8:22 AM
Sivaraman DhamodaranPosted Aug 16, 2013, 7:54 AM
Sanjeeb LenkaPosted Aug 16, 2013, 7:54 AM