Not sure where to post this question ...
I've created an app using LS and so far everything works fine. I'm using IIS, asp.net, c# etc. I would like to push HTML to the client, mainly html tables to be rendered inside the div elements but it's not working, it's rendering the HTML text instead of the formatted. This is my adapter code:
...
this.TableHeader();
this.TableRow(this._dt1.Rows[0]["dt_StartDateTime"].ToString(), this._dt1.Rows[0]["ds_AdminMessage"].ToString());
this.TableFooter();
this._eventData["admin_messages"]= this._sbTable.ToString();
this._intID_ADMIN = intID;
private void TableHeader()
{
this._sbTable.Length = 0;
this._sbTable.Append("<br/>");
this._sbTable.Append("<table border=0 cellpadding=2; cellspacing=3 width=100%>");
}
private void TableRow(string strCol1, string strCol2)
{
this._sbTable.Append("<tr>");
this._sbTable.Append("<td bgcolor=#fffacd width=20%>" + strCol1 + "</td>");
this._sbTable.Append("<td align=\"right\" bgcolor=#fffacd width=25%>" + strCol2 + "</td>");
this._sbTable.Append("</tr>");
}
private void TableFooter()
{
this._sbTable.Append("</table>");
this._sbTable.Append("<br/>");
}
...
client container
<div id="divAdministrativeMessages_content" runat="server">
<div style="background-color: #FFFFBB; border: solid 1px Black; height: 165px; overflow: auto;">
<div source="lightstreamer" table="signalstable" item="eurusd" field="
admin_messages">
</div>
</div>
</div>
Please help, thanks. The link to the page is
http://www8.selfip.com/fxgoldkeyssignalsls/wfsignals1.aspx