4
42
Hi,
I've run into a block, that I'm almost sure is really simple...but I
can't seem to clue in right now.
I'd like to create a user control that takes input like this:
<mycontrolanel id=firstpanel photo="mypic.jpg" runat=server>
<h3>Hi there</h3>
<p>This is a test</p>
</mycontrol>
And renders as this:
<table>
<tr>
<td><img src="mypic.jpg"></td>
<td>
<h3>Arbitrary content<h3>
<p>goes here... even possibly other controls</p>
</td>
</tr>
</table>
My control looks like:
<table>
<tr>
<td><img src="<% =photo %>"></td>
<td>
** How to I get the inner stuff here**
<placeholder maybe???>
</td>
</tr>
</table>
with codebehind that curretnly simply declares the photo property.
How do I grab the content between the <mycontrol> and </mycontrol>, so
that I can put it into the placeholder. (Or other technique...)
Thanks!
I've run into a block, that I'm almost sure is really simple...but I
can't seem to clue in right now.
I'd like to create a user control that takes input like this:
<mycontrolanel id=firstpanel photo="mypic.jpg" runat=server>
<h3>Hi there</h3>
<p>This is a test</p>
</mycontrol>
And renders as this:
<table>
<tr>
<td><img src="mypic.jpg"></td>
<td>
<h3>Arbitrary content<h3>
<p>goes here... even possibly other controls</p>
</td>
</tr>
</table>
My control looks like:
<table>
<tr>
<td><img src="<% =photo %>"></td>
<td>
** How to I get the inner stuff here**
<placeholder maybe???>
</td>
</tr>
</table>
with codebehind that curretnly simply declares the photo property.
How do I grab the content between the <mycontrol> and </mycontrol>, so
that I can put it into the placeholder. (Or other technique...)
Thanks!