i have this in my C#
The problem is it prints it as text in the html file instead of actually making it html so that i see the page properly.
This is what i see as a "string" once the html page is loaded
<div id="div1"> <img src="http://www.system.push play.co.za/images/covers/big/big_<%=vcimagen ame %>" width="80" height="100" /> </div><div id="div2"> <table> <tr><td> <%=vctitlename. Replace("@","<b r/>") %>(<%=vccertifi cate %>) <%=int year %> </td> </tr> <tr> <td> Starring: <%=titleactorli st %> </td> </tr> <tr> <td> <%=vcshortdesc% ><br /> </td> </tr> </table> </div>
Code:
sData += "<div id=\"div1\"> " +
"<img src=\"http://www.system.pushplay.co.za/images/covers/big/big_<%=vcimagename %>\" width=\"80\" height=\"100\" /> " +
"</div>" +
"<div id=\"div2\"> " +
"<table> " +
"<tr>" +
"<td> " +
"<%=vctitlename.Replace(\"@\",\"<br/>\") %>(<%=vccertificate %>) <%=intyear %> " +
"</td> " +
"</tr> " +
"<tr> " +
"<td> " +
"Starring: <%=titleactorlist %> " +
"</td> " +
"</tr> " +
"<tr> " +
"<td> " +
"<%=vcshortdesc%><br /> " +
"</td> " +
"</tr> " +
"</table> "+
"</div> " ;
encodedHtml = Server.HtmlEncode(sData);
This is what i see as a "string" once the html page is loaded
<div id="div1"> <img src="http://www.system.push play.co.za/images/covers/big/big_<%=vcimagen ame %>" width="80" height="100" /> </div><div id="div2"> <table> <tr><td> <%=vctitlename. Replace("@","<b r/>") %>(<%=vccertifi cate %>) <%=int year %> </td> </tr> <tr> <td> Starring: <%=titleactorli st %> </td> </tr> <tr> <td> <%=vcshortdesc% ><br /> </td> </tr> </table> </div>
Comment