I have ASP code like this:
<ext:Panel ID="pnlHelp" CtCls="help-panel" AnimCollapse="true"">
<Content>
<h1>some text</h1>
<p>
More text[...]
</p>
</Content>
</ext:Panel>
I would like to generate the <Content>
tag dynamically using C#. I tried this, like with regular HTML tags:
<ext:Panel ID="pnlHelp" CtCls="help-panel" AnimCollapse="true"">
<Content>
<% Response.Write("<h1>some text</h1>"); %>
<p>
More text[...]
</p>
</Content>
</ext:Panel>
But the text ends up somewhere near the beginning of the page where I didn't intend it to go. How can I do this?
some text
"); %>` and I'm getting a " ) expected" error. Why's that? – hardmax Mar 05 '12 at 11:31" + h1Text; }` – the_joric Mar 05 '12 at 11:34