G
gerry
I am trying to create a custom container control that will only ever contain
a specific type of control.
At design time, when a control of a different type is added to the container
I would like to wrap the control in the proper control type - which is also
a container.
At design time I want to be able to turn this :
<my:container>
<asp:textbox />
</my:container>
into this :
<my:container>
<my:wrapper>
<asp:textbox />
</my:wrapper>
</my:container>
It is no problem to detect what type of object is being added to the control
and I can do the wrapping easy enough for the rendered control , but I can't
see how to change the physical markup as displayed in the designer and
stored in the .aspx file.
Webparts does something similar but it looks like the designer source has
not been made available.
Anyone know how to do this or have any ideas on how this might be done ?
Gerry
a specific type of control.
At design time, when a control of a different type is added to the container
I would like to wrap the control in the proper control type - which is also
a container.
At design time I want to be able to turn this :
<my:container>
<asp:textbox />
</my:container>
into this :
<my:container>
<my:wrapper>
<asp:textbox />
</my:wrapper>
</my:container>
It is no problem to detect what type of object is being added to the control
and I can do the wrapping easy enough for the rendered control , but I can't
see how to change the physical markup as displayed in the designer and
stored in the .aspx file.
Webparts does something similar but it looks like the designer source has
not been made available.
Anyone know how to do this or have any ideas on how this might be done ?
Gerry