Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

create singleton usercontrol

$
0
0

Hi

Is it posible to create an .ascx usercontrol so that no matter how many times, its been added to a aspx page, the page will behave as if the usercontrol has only been added once.

My problem is that I have a usercontrol ,TemplateFieldModule.ascx, which contains an instance of and depends on another usercontrol ,FilteredComboboxes.ascx.

In my aspx page I have multiple instances of TemplateFieldModule.ascx, which means that FilteredComboboxes.ascx is added to Page multple times, but I only want one instance of FilteredComboboxes.ascx.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>