how to store dynamic button text
<p>I have below code and i would like to get the texts of dynamic created buttons on the server side which is clicked however on the second click of the button,the button is disabled and i dont wanna have its text property.</p>

<p>this is the code how i create dynamic buttons with the loop</p>

<pre><code>for (int i = 0; i &lt; numberofplants; i++)
    {
       builderchart.Append("&lt;th class=style8&gt;");
      builderchart.Append("&lt;input type='button' id='btn" + i.ToString() + "' value='" + dtplants.Rows[i][0] + "' style='width:55px;' class='inputbutton'&gt;");
                        builderchart.Append("&lt;/th&gt;");
    }

   .is-highlighted {
    background-color:#6FA478;

        $(function () {
            $('input[type=button]').on('click', function (e) {
                e.preventDefault();
                $(this).toggleClass('is-highlighted');
            });
        });      
</code></pre>
