When i try to insert html text into a div (i made it runat=server and i populate the div with html text. it’s look like this,
string htmlData = "< html > blabla...< /html >";
divcontent.innerHtml = htmlData;
the page is damaged.
but when i take the same html data and put it as is in an html file its shows properly.
what should i take in consider ?
p.s. i am writing in asp.net (c#) VS2005.
i found the soultion to my problem.
i needed to remove the DOCTYPE tag from my page.
it causes a contradiction with my html string.
i dont know what to replace it with but it works for me…