How to post variables in ASPX?
<p>In an ASPX page, I am populating the rows of a table programatically by filling up a server-side string with  contents and then putting it in the output HTML with a construct <code>&lt;tbody&gt;&lt;%=mystring%&gt;&lt;/tbody&gt;</code>.</p>

<p>One of the <code>&lt;td&gt;</code> elements of the row is a button to delete the row, and I need to pass to the server another <code>&lt;td&gt;</code> element in the row.</p>

<p>In the server-side code that prepares the table, I tried with:</p>

<pre><code>string RowTemplate; 
RowTemplate = "&lt;tr&gt;&lt;td&gt;{0}&lt;/td&gt;&lt;td&gt;{1}&lt;/td&gt;&lt;td&gt;{2}&lt;/td&gt;&lt;td&gt;&lt;form action=\"/submit\" name=\"removeemail{0}\" runat=\"server\"&gt;&lt;input custom=\"{1}\" class=\"btn icon-remove\" value=\"X\" onserverclick=\"RemoveEmail\" runat=\"server\"/&gt;&lt;/form&gt;&lt;/td&gt;&lt;/tr&gt;";
</code></pre>

<p>Then, as I create rows, the place holders {0}, {1}, and {2} are replaced by the row's corresponding values.</p>

<p>The idea is to retrieve the "custom" attribute (the key for deletion) at the server-side function called RemoveEmail, and then build the table again without the removed row.</p>

<p>However, it seems that the generated HTML for this inline form is not preprocessed by ASPX engine so HTML code that reaches the browser is directly the ASPX HTML markup.</p>

<p>How could I have the ASPX markup preprocessed so that it behaves exactly as static ASPX markup like the one that is find an a .aspx file?  If that is not possible, how could I manage server-side deletion with an inline button on a table row in ASPX?</p>
