ControlToValidate of a validator control. it shows you list of all controls
having ValidationProperty attribute applied. Yes, such is done with a custom
"N Kumar" <NKumar@discussions.microsoft.com> wrote in message
news:FE0EDAFE-2315-4D72-9766-575E971F5118@microsoft.com...
> Thanks Teemu.
>
> But I am not looking to access the child controls within the composite
> control. This is definitely possible as you indicated.
>
> What I am looking for is, I have a, say composite control with property
> say
> Text. Now when a developer uses my control and tries to assign the Text
> property through Property window, I would like to show him/her, the other
> Textbox names in that web form. Say the developer has assigned (mapped) to
> Textbox1, at runtime, the Text property of the composite control should
> take
> the text value from Textbox1.
>
> Is such a mapping possible?
>
> --
> NK
>
>
> "Teemu Keiski" wrote:
>
>> Hi,
>>
>> yes it is. One way is to write a composite server control.
>>
>> Here's a sample
>>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcompositecontrolsample.asp
>>
>> And here's one good article:
http://aspalliance.com/359 >>
>> If you use ASp.NET 2.0 see:
http://dotnet.sys-con.com/read/171169.htm >> (with ASP.NET 2.0 you'd inherit directly from CompositeControl base
>> class)
>>
>> --
>> Teemu Keiski
>> ASP.NET MVP, AspInsider
>> Finland, EU
>>
http://blogs.aspadvice.com/joteke >>
>>
>> "N Kumar" <NKumar@discussions.microsoft.com> wrote in message
>> news:B83CF4D7-B420-4DB5-AB9F-26EF422CA0AA@microsoft.com...
>> >I am developing a Web custom control whose properties (such as text) I
>> >would
>> > like to map to other control properties (such as textbox1.text) or
>> > variables
>> > of the web form at design time. Is this possible?
>> > --
>> > NK
>>
>>
>>