I created a custom webcontrol that could be used inside of other controls. It only needs to be rendered once on any page that uses it no matter how many other controls call for it.
How can I prevent the web control from rendering if another is already on the page?
I tried
inside of the Render method but that didnt work.
How can I prevent the web control from rendering if another is already on the page?
I tried
Code:
Page.FindControl("controls_static_id") == null
Comment