G
Guest
I created a control which parses its sub objects and wraps the code in an
HTML wrapper. For example:
<abc:Section ID="Section1" Runat="server" Title="Example">
<p>This is an example.</p>
<p>This is an example.</p>
</abc:Section>
When the above example is rendered to HTML it appears as follows:
<table border=1 bordercolor=black>
<tr>
<th bgcolor=silver>Example</th>
<tr>
<tr>
<td>
<p>This is an example.</p>
<p>This is an example.</p>
</td>
</tr>
</table>
The problem I am experiencing is that placing a code render block results in
a "blank" section. I would expect the following section to be rendered as
above; however, it doesn't.
<abc:Section ID="Section1" Runat="server" Title="Example">
<%
for(int x=0; x<2; x++)
{
%>
<p>This is an example.</p>
<%
}
%>
</abc:Section>
Instead of rendering as expected, it renders as:
<table border=1 bordercolor=black>
<tr>
<th bgcolor=silver>Example</th>
<tr>
<tr>
<td>
</td>
</tr>
</table>
Any ideas on how to get this custom control to render inline code would be
greatly appreciated.
HTML wrapper. For example:
<abc:Section ID="Section1" Runat="server" Title="Example">
<p>This is an example.</p>
<p>This is an example.</p>
</abc:Section>
When the above example is rendered to HTML it appears as follows:
<table border=1 bordercolor=black>
<tr>
<th bgcolor=silver>Example</th>
<tr>
<tr>
<td>
<p>This is an example.</p>
<p>This is an example.</p>
</td>
</tr>
</table>
The problem I am experiencing is that placing a code render block results in
a "blank" section. I would expect the following section to be rendered as
above; however, it doesn't.
<abc:Section ID="Section1" Runat="server" Title="Example">
<%
for(int x=0; x<2; x++)
{
%>
<p>This is an example.</p>
<%
}
%>
</abc:Section>
Instead of rendering as expected, it renders as:
<table border=1 bordercolor=black>
<tr>
<th bgcolor=silver>Example</th>
<tr>
<tr>
<td>
</td>
</tr>
</table>
Any ideas on how to get this custom control to render inline code would be
greatly appreciated.