This project is read-only.

Invalid Char in html

Feb 13, 2011 at 6:44 PM


I prefer to open a new subject about that problem :

It seems there is an invalid(null?) char generated inside the html code.

If you try to show the source code of a website that containing the menu provider (inside IE,FF,Opera ...), the source code is cut just after the menu.


You can reproduce it by this way, go to, use showsource and you will see half of the source code of the page.


I try to debug the source code by adding renderedMenu var(MenuSkinObject.vb->Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)) to the eventlog but there is an error :

Error '.', hexadecimal value 0x00, is an invalid character.

I cannot find out exactly where the char is generated. It seems some chars are added without testing if the original string is empty or not ( ie: elementTemplateDefinition(currentDepth).Append(currentTemplateStructure(0))) but even with adding a test strin.isnullorempty I still have the problem.


Could you check this part of code?





Feb 15, 2011 at 11:39 PM

Hello jbval,

this seems to be a problem/exploit in the source code viewer of IE and Opera (

I have just fixed this issue by parsing out all null control characters. This will be part of our next release.

Thanks for your research and feedback!



Feb 16, 2011 at 8:51 AM



thanks for your detailed answer. I saw the problem when I tried to validate my website on w3 validator which send me an error.

No problem for the research even if I don't found the exact source of the problem ;)

I hope my messages can help and not only flooding the forum :p