Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
05-16-2011, 07:26 AM #1
- Join Date
- May 2011
- Thanked 0 Times in 0 Posts
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>h2</h2> it does not work..could you please help me in this.