P
pbd22
Hi.
I have dynamically created a ButtonField and then, in the
GV_RowDataBound function, I have the
below line:
LinkButton _singleClickButton =
(LinkButton)e.Row.Cells[1].Controls[0];
I want it to discover the ButtonField, but when I view source after,
it always puts the
onclick event in the TR tags. How do I drill down to the TD tags and
then, how do I
drill down to the Anchor tags within the TD tags?
Here is the output currently:
<tr>
<th scope="col">Folder</th><th scope="col">Title</th><th
scope="col">Type</th><th scope="col"> </th>
</tr>
<tr onclick="javascript:__doPostBack('vGridView$ctl02$ctl00','')"
style="background-color:#EFF3FB;">
<td>/Conferences/Keystone Conference/keystone1_1600</td><td
align="center"><a href="javascript:__doPostBack('vGridView','$0')"
style="color:#333333;">key_1600</a></td><td>Stored</td><td
class="hideGID">4d43535365617263684</td>
Thanks!
I have dynamically created a ButtonField and then, in the
GV_RowDataBound function, I have the
below line:
LinkButton _singleClickButton =
(LinkButton)e.Row.Cells[1].Controls[0];
I want it to discover the ButtonField, but when I view source after,
it always puts the
onclick event in the TR tags. How do I drill down to the TD tags and
then, how do I
drill down to the Anchor tags within the TD tags?
Here is the output currently:
<tr>
<th scope="col">Folder</th><th scope="col">Title</th><th
scope="col">Type</th><th scope="col"> </th>
</tr>
<tr onclick="javascript:__doPostBack('vGridView$ctl02$ctl00','')"
style="background-color:#EFF3FB;">
<td>/Conferences/Keystone Conference/keystone1_1600</td><td
align="center"><a href="javascript:__doPostBack('vGridView','$0')"
style="color:#333333;">key_1600</a></td><td>Stored</td><td
class="hideGID">4d43535365617263684</td>
Thanks!