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
Append("<img src=""Images\\\\thumbnails\\\\Code00005_0001.jpg""></img>").sbMarquee.ToString()had exactly what you were expecting.'and"are interchangeable for HTML, to the best of my knowledge, so long as you're consistent for each usage.href= #andsrc={source}without quotes entirely. Anyway see spender's answer.