please help me with this...
i have a code block in a class file which contains following piece of code
HtmlImage mainPic = new HtmlImage();
mainPic.Attributes.Add("onclick", "MainPictureClick('" + GUID + "','" + ErrorMessage + "');");
i.e; MainPictureClick(idSuffix, noFlashUrl)
"ErrorMessage". this parameter is containing the html content which is passed to the function.
Now when the function executes we are using
errorContainer - a div and using innerHTML binding the html content received as a parameter to it.
errorContainer.innerHTML = noFlashUrl;
but when the html content contains two "h1" it gives error
say <h1>hi</h1> <h1>there</h2> it does not work..could you please help me in this.