I am creating a custom web control that I need only one instance of control user can add in page, same like scriptmanager.
I need this check under custom control it self but not getting any correct approach, I know by iterating page.controls property I can check existence of control but I would like to know is it only a way? or is there any other generic/right way to check like scriptmanager does when more than one instance found in page.
First thing come to my mind..
on your custom control..