Last post Sep 11, 2011 10:42 AM by bilal.qadeer
Sep 01, 2011 09:24 AM|gois333|LINK
sorry if this has already been asked before but I have tried to search for the answer to no avail..
What I want is to have in my custom WebControl a property of type WebControl, whereby when I drag my control to the page, the property will show a drop-down which lists all the other controls on the page. The reason for doing this is I have a popup control
whereby I need to specify the button control which will cause it to open. So far the only way I can do this is by setting a string property on my popup control which is the id of the button, which means I then to recursively look for the control in the page.
It would seem a better solution if I could pass a reference directly to the Button control. I did try and create a property of type WebControl, however in the Properties box on the page editor it does not give me a dropdown of all the controls on the web,
and I am sure I have seen this with another control before so there must be a way!
Any help would be much appreciated!
Sep 02, 2011 10:10 PM|Decker Dong - MSFT|LINK
Would you mind showing us your full codes?
Sep 11, 2011 10:42 AM|bilal.qadeer|LINK
i think you are looking for this.