Home All Groups Group Topic Archive Search About
Author
14 Apr 2005 1:38 AM
Ron Vecchi
Is it possible to create a custom control like the below example.
Basically the custom control will have a public property of type
PlaceHolder.  What ever html content is enter between the <Container>
elements should be added to part of the Placeholders control colleciton.

Is this possible? any good resources for doing this out there?
---------------
<cc1:MyCustomControl id="Control" runat="server">
    <Container>
        //insert html content
    </Container>
</cc1:MyCustomControl>
----------------


Thanks!
Ron

Author
14 Apr 2005 5:48 AM
Brock Allen
Yes, you can. Here are a couple of articles:

http://msdn.microsoft.com/msdnmag/issues/02/01/cutting/
http://msdn.microsoft.com/msdnmag/issues/03/06/CuttingEdge/default.aspx

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> Is it possible to create a custom control like the below example.
> Basically the custom control will have a public property of type
> PlaceHolder.  What ever html content is enter between the <Container>
> elements should be added to part of the Placeholders control
> colleciton.
>
> Is this possible? any good resources for doing this out there?
> ---------------
> <cc1:MyCustomControl id="Control" runat="server">
> <Container>
> //insert html content
> </Container>
> </cc1:MyCustomControl>
> ----------------
>
> Thanks!
> Ron
Author
16 Apr 2005 2:14 PM
Ron
Excellent,  the second one was what I was looking for,

Thanks!
Ron


Show quoteHide quote
"Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
news:460349632490400784899328@msnews.microsoft.com...
> Yes, you can. Here are a couple of articles:
>
> http://msdn.microsoft.com/msdnmag/issues/02/01/cutting/
> http://msdn.microsoft.com/msdnmag/issues/03/06/CuttingEdge/default.aspx
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
>> Is it possible to create a custom control like the below example.
>> Basically the custom control will have a public property of type
>> PlaceHolder.  What ever html content is enter between the <Container>
>> elements should be added to part of the Placeholders control
>> colleciton.
>>
>> Is this possible? any good resources for doing this out there?
>> ---------------
>> <cc1:MyCustomControl id="Control" runat="server">
>> <Container>
>> //insert html content
>> </Container>
>> </cc1:MyCustomControl>
>> ----------------
>>
>> Thanks!
>> Ron
>
>
>