S
Samuel
Hi,
I am building a control that renders as a table, and I created two templates
for my users to "wrap" the table with whatever HTML tags they want. Like this
<topWrapperTemplate></topWrapperTemplate>
<table>.....</table>
<bottomWrapperTemplate></bottomWrapperTemplate>
whatever goes into the two wrapper templates should be rendered literally
without <span> tags. So if a user put <div class="hot"> in
topWrapperTemplate, and </div> in bottomWrapperTemplate, the result should
look like
<div class="hot">
<table>...</table>
</div>
not this:
<span><div class="hot"></span>
<table>...</table>
<span></div></span>
What should I do? I know how not to render the <span> tag around the whole
control by overriding the render sub, but I have no idea how to do the same
with the templates within my own control.
I am building a control that renders as a table, and I created two templates
for my users to "wrap" the table with whatever HTML tags they want. Like this
<topWrapperTemplate></topWrapperTemplate>
<table>.....</table>
<bottomWrapperTemplate></bottomWrapperTemplate>
whatever goes into the two wrapper templates should be rendered literally
without <span> tags. So if a user put <div class="hot"> in
topWrapperTemplate, and </div> in bottomWrapperTemplate, the result should
look like
<div class="hot">
<table>...</table>
</div>
not this:
<span><div class="hot"></span>
<table>...</table>
<span></div></span>
What should I do? I know how not to render the <span> tag around the whole
control by overriding the render sub, but I have no idea how to do the same
with the templates within my own control.