Building a control to container users html

M

MattC

I want to be able to create a control that will wrap any html placed inside
the control tag with some predefine html.

For example is the following possible?

<mycontrol:container id="test" hidebutton=hide.gif CSSClass="container"
containername=details runat=server>
Hello
</mycontrol:container>

Would produce the output:

<!--Container-->
<table class="container" cellSpacing="0" cellPadding="0">
<tr>
<TD class="container" vAlign="top">
<A href="javascript:condense('details')"><IMG src="hide.gif"
align="absMiddle" name="details"></A>Allowance Entries
</TD>
</tr>
<TR>
<TD>
<DIV id="detailsdiv">
<!--Container Contents-->

Hello

<!--End Container Contents-->
</DIV>
</TD>
</TR>
</table>
<table>
<tr height="15">
<td></td>
</tr>
</table>
<!--End Container-->
 
M

MattC

P.S. Id also like to be able to place webcontrol like DataGrid's inside the
tags.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top