I'm having problems trying to put a variable into a table row.
<pre class="ip-ubbcode-code-pre">
<%
tempStr = hs.DeviceStringByName("Computer room CNN Headlines")
Response.Write "<h4>These are the latest headlines from CNN. You may click on the headlines to view the story</h4><br>"
%>
<%=tempStr%> 'this is before the table and demonstrates the variable works
<%
Response.Write "<table class=tableheader border="2" width="90%" allign="center" cellspacing="4px"><tr><th>CNN Headlines</th><th>Select</th><th>Instructions</th></tr>
Response.Write "<tr><class=tablecolumn>"
Response.Write ("<td>Column 1</Td><td><br")
Response.BinaryWrite(tempStr) 'No matter what I use here I cannot get it to work I have tried using <%=tempStr%>, Response.Write but all I get is the statement itself in the cell.
Response.Write ("</td><td>Column 3</Td>")
Response.Write "</tr></table>"
%>
<%=CustomFooter%>
</pre> <span class="ev_code_PURPLE">
I think there must be something special when writing into a cell. But also I'm getting some Response.Write errors on the page as well. So it may be from something else. If you can review the code above and help, I would very greatful.
</span>
<pre class="ip-ubbcode-code-pre">
<%
tempStr = hs.DeviceStringByName("Computer room CNN Headlines")
Response.Write "<h4>These are the latest headlines from CNN. You may click on the headlines to view the story</h4><br>"
%>
<%=tempStr%> 'this is before the table and demonstrates the variable works
<%
Response.Write "<table class=tableheader border="2" width="90%" allign="center" cellspacing="4px"><tr><th>CNN Headlines</th><th>Select</th><th>Instructions</th></tr>
Response.Write "<tr><class=tablecolumn>"
Response.Write ("<td>Column 1</Td><td><br")
Response.BinaryWrite(tempStr) 'No matter what I use here I cannot get it to work I have tried using <%=tempStr%>, Response.Write but all I get is the statement itself in the cell.
Response.Write ("</td><td>Column 3</Td>")
Response.Write "</tr></table>"
%>
<%=CustomFooter%>
</pre> <span class="ev_code_PURPLE">
I think there must be something special when writing into a cell. But also I'm getting some Response.Write errors on the page as well. So it may be from something else. If you can review the code above and help, I would very greatful.
</span>
Comment