How to call the function by onClick the button
<pre><code>protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = DataAccess.getWithdrawList();

            StringBuilder html = new StringBuilder();

            html.Append("&lt;div class='row mt'&gt;");
            html.Append("&lt;div class='col-md-12'&gt;");
            html.Append("&lt;div class='content-panel'&gt;");
            html.Append("&lt;table class='table table-striped table-advance table-hover'&gt;");
            html.Append("&lt;h4&gt;&lt;i class='fa'&gt;&lt;/i&gt;Withdrawal List&lt;/h4&gt;");
            html.Append("&lt;hr&gt;");
            html.Append("&lt;thead&gt;");
            html.Append("&lt;tr&gt;");

            foreach (DataColumn column in dt.Columns)
            {
                html.Append("&lt;th&gt;&lt;i class='fa'&gt;&lt;/i&gt;");
                html.Append(column.ColumnName);
                html.Append("&lt;/th&gt;");
            }

            html.Append("&lt;/tr&gt;");
            html.Append("&lt;/thead&gt;");
            html.Append("&lt;tbody&gt;");

            foreach (DataRow row in dt.Rows)
            {
                html.Append("&lt;tr&gt;");
                foreach (DataColumn column in dt.Columns)
                {
                    html.Append("&lt;td runat='server'&gt;");
                    html.Append(row[column.ColumnName]);
                    html.Append("&lt;/td&gt;");
                }
                html.Append("&lt;td&gt;&lt;button class='btn btn-success btn-xs'&gt;&lt;i class='fa fa-check'&gt;&lt;/i&gt;&lt;/button&gt;&lt;/td&gt;");
                html.Append("&lt;/tr&gt;");
            }

            html.Append("&lt;/tbody&gt;");
            html.Append("&lt;/table&gt;");
            html.Append("&lt;/div&gt;");
            html.Append("&lt;/div&gt;");
            html.Append("&lt;/div&gt;");

            PlaceHolder1.Controls.Add(new Literal { Text = html.ToString() });
        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {

        }
</code></pre>

<p>I want to onclick button to call the btnSubmit function and retrieve data from every single row of the data column from HTML Table into backend code but I failed to do so because I couldn't call the function by the button click in asp.net, anyone have ideas of doing it? Thank you.</p>