Groups | Blog | Home
all groups > asp.net building controls > april 2004 >

asp.net building controls : Using controls as property of a custom control


tulga_kalayci NO[at]SPAM hotmail.com
4/1/2004 11:53:48 AM
Hi,
I have created a web custom control. I want to be able to select one
of the other controls on my form as one the properties of my custom
control. Similar to validation control's ControlToValidate property.
How can I do this? Any help will be appreciated.
Thanks

Teemu Keiski
4/8/2004 10:41:06 PM
Hi,

you need to attach a custom typeconverter to the property. Typeconverter is
capable to provide the list of controls on the Page. Here is an example:
http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=214342

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke


[quoted text, click to view]
Hi,
I have created a web custom control. I want to be able to select one
of the other controls on my form as one the properties of my custom
control. Similar to validation control's ControlToValidate property.
How can I do this? Any help will be appreciated.
Thanks

Tulga

AddThis Social Bookmark Button