L
Leo
I have a datagrid with the first column as a Edit,Update,Cancel button
column. The other 5 columns are template columns. When I click the Edit
button in IE6 the row correctly displays the controls defined in the
<EditItemTemplate> however when I right click and do a view source I cannot
find any of the input textboxes in the source. I have used the
ItemDatabound event to try to attach javascript to the textboxes and in
debug mode while stepping through it seems to find the controls and add the
attributes but they never show up in the view source. Here is the source
line for just the datarow that is in the edit mode:
<tr style="color:Black;background-color:#EEEEEE;">
<td style="color:Blue;">
<a href="javascript:__doPostBack('grdStaff$_ctl4$_ctl0','')"
style="color:Blue;">Edit</a>
</td>
<td>
<span>Beck, John</span>
</td>
<td>
<span id="grdStaff__ctl4_lblLoginName">BeckJ</span>
</td>
<td>
<span id="grdStaff__ctl4_lblPassword">1235</span>
</td>
<td>
<span id="grdStaff__ctl4_lblEmail">[email protected]</span>
</td>
<td align="Center">
<font face="Wingdings"><b></b></font>
</td>
</tr>
It looks like it is still showing the Edit button even though the row is
displayed in the edit mode in IE. I have done a find in the source for
"BeckJ" and this one row is the only place it is found which is the line
being edited. How is IE displaying the textboxes and is it possible to
attach javascript to them?
column. The other 5 columns are template columns. When I click the Edit
button in IE6 the row correctly displays the controls defined in the
<EditItemTemplate> however when I right click and do a view source I cannot
find any of the input textboxes in the source. I have used the
ItemDatabound event to try to attach javascript to the textboxes and in
debug mode while stepping through it seems to find the controls and add the
attributes but they never show up in the view source. Here is the source
line for just the datarow that is in the edit mode:
<tr style="color:Black;background-color:#EEEEEE;">
<td style="color:Blue;">
<a href="javascript:__doPostBack('grdStaff$_ctl4$_ctl0','')"
style="color:Blue;">Edit</a>
</td>
<td>
<span>Beck, John</span>
</td>
<td>
<span id="grdStaff__ctl4_lblLoginName">BeckJ</span>
</td>
<td>
<span id="grdStaff__ctl4_lblPassword">1235</span>
</td>
<td>
<span id="grdStaff__ctl4_lblEmail">[email protected]</span>
</td>
<td align="Center">
<font face="Wingdings"><b></b></font>
</td>
</tr>
It looks like it is still showing the Edit button even though the row is
displayed in the edit mode in IE. I have done a find in the source for
"BeckJ" and this one row is the only place it is found which is the line
being edited. How is IE displaying the textboxes and is it possible to
attach javascript to them?