Reputation: 307
I am writing html tags in a an html file by following code in C#:
StringBuilder sbMarquee = new StringBuilder();
sbMarquee.Append("<a href= # onclick = showimage('Images\\\\Code00005_0001.jpg')>").Append("<img src=Images\\\\thumbnails\\\\Code00005_0001.jpg></img>").Append("</a>");
_hdCaseMarquee.InnerHtml = sbMarquee.ToString();
But, I get following HTML output:
<a href="#" onclick="showimage('Images\\Code00005_0001.jpg')"><img src="Images\\thumbnails\\Code00005_0001.jpg"></a></marquee>
Following tag from the string is completely ignored:
</img>
Please Help
Upvotes: 0
Views: 816