A
Andy Sutorius via DotNetMonster.com
Hi,
I am attempting to set the CssClass programatically of an asp.net table
row. My html is below. My code behind with the error on line 313 is also
below. I attempted to cast the data from the data reader into a table row
and then set the table row's CssClass but got the error. How can I set the
CssClass of the <tr> programmitcally?
Thanks!
Andy
<tr id="hp_loc_016_da01" runat="server">
<td>Patient Signature Source A</td>
<td><asp:textbox id="txtPatientSignatureSourceA"
Runat="server"></asp:textbox></td>
</tr>
Line 311: while (dtrElecDemoData.Read())
Line 312: {
Line 313: TableRow troHiliteRowID = (TableRow) dtrElecDemoData["hilite"];
Line 314: troHiliteRowID.CssClass = "highlightrowyellow";
Line 315: }
Source File: c:\inetpub\wwwroot\ecui_1\wpclaimhcfaelecdemodata.aspx.cs
Line: 313
I am attempting to set the CssClass programatically of an asp.net table
row. My html is below. My code behind with the error on line 313 is also
below. I attempted to cast the data from the data reader into a table row
and then set the table row's CssClass but got the error. How can I set the
CssClass of the <tr> programmitcally?
Thanks!
Andy
<tr id="hp_loc_016_da01" runat="server">
<td>Patient Signature Source A</td>
<td><asp:textbox id="txtPatientSignatureSourceA"
Runat="server"></asp:textbox></td>
</tr>
Line 311: while (dtrElecDemoData.Read())
Line 312: {
Line 313: TableRow troHiliteRowID = (TableRow) dtrElecDemoData["hilite"];
Line 314: troHiliteRowID.CssClass = "highlightrowyellow";
Line 315: }
Source File: c:\inetpub\wwwroot\ecui_1\wpclaimhcfaelecdemodata.aspx.cs
Line: 313