BrogansMom
asked on
Conditional format table without codebehind
I inherited a project with a giant table in an aspx page that has a TON of inline code. Now I need to conditionally style a row based on the value of a textbox in the table. Unfortunately, I can't add a "runat=Server" tag to the table row because of all the embedded <% %> tags. I just need to apply the style to this row. I know all this embedded stuff needs to move to the code behind. I didn't write this - I just need to get this one small thing fixed.
<ajax:Accordion ID="Accordion1" runat="server" FadeTransitions="False"
SelectedIndex="0" HeaderCssClass="accordionH eader" ContentCssClass="accordion Content">
<HeaderTemplate>
<div style="height:20px;">  ;</div>
<table class="cart" >
<tbody>
<ItemTemplate>
<tr class="row I need to style " >
<%if (Isvalid) { %>.... tons more tags like this in the td sections.
Any advice?
<ajax:Accordion ID="Accordion1" runat="server" FadeTransitions="False"
SelectedIndex="0" HeaderCssClass="accordionH
<HeaderTemplate>
<div style="height:20px;"> 
<table class="cart" >
<tbody>
<ItemTemplate>
<tr class="row I need to style " >
<%if (Isvalid) { %>.... tons more tags like this in the td sections.
Any advice?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER