dynamically generated html buttons: source of onclick event caller
<p>I have a DataTable which has a column like such:</p>

<pre><code>string temp = row["date"].ToString();
rowDetail[0] = "&lt;input type='button' onclick='showArchive(this)' value='" + temp + "'/&gt;";
myTbl.Rows.Add(rowDetail);
</code></pre>

<p>So, when I bind myTbl to a datagrid.datasource, these column cells appear as buttons display "date" data. However, in my javascript function where the onclick event takes place, how would I know button/row made the call, so I can grab the rest of the data in that row for processing? I hope that's not lacking too much detail. Thanks all</p>

<p><strong>Edit:</strong> Here's my js event:</p>

<pre><code>function showArchive(btn)
    {
        __doPostBack('btnShowDates', '/*btn.gridRowIndex*/');
    }
</code></pre>

<p>Something like this would be ideal lol.</p>
