I am using a WebHtmlEditor control in one of my aspx pages.If I work on it in Visual Studio, everything works fine - I can edit in both design and source modes.
But if I open the same ASPX page in Expression Web 2 - this happens:
1) The page actually gets modified - see below for the before and after.2) Expression Web 2 cannot render the WebHtmlEditor - it displays the error "Literal content (' ') is not allowed within a 'Infragistics.WebUI.WebHtmlEditor.HtmlBoxMenuItem"3) If I save the page in Expression Web 2 and then try to compile in Visual Studio 2008, I then get the same error.
It seems that the WebHtmlEditor is not compatible with Expression Web 2. Does anyone know if there's a workaround to use the WebHtmlEditor in Expression Web 2?
----------------------------------------------------------------------------------------------------------
Before opening the ASPX in Expression Web 2:
<ighedit:HtmlBoxMenuItem runat="server" Act="Cut" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"> <Dialog Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></Dialog></ighedit:HtmlBoxMenuItem>
After opening the ASPX in Expression Web 2 (notice the added " "):
<ighedit:HtmlBoxMenuItem runat="server" Act="Cut" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"> <Dialog Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></Dialog> </ighedit:HtmlBoxMenuItem>
Hi Ehuna,
There was a bug submitted for that.
To test, I installed "Expression Web 2" and experimented with attached application. That application contained WebHtmlEditor which version was different from version on my machine, so I had chance to have various exceptions. After experimenting with that software and reading instructions about local bin, etc. I found that problem with " " was triggered by mismatching version defined in <%@ Register ..> and web.config with version of dlls in GAC (or version in local bin).
Please ensure that web site references correct versions of dlls. That should fix your issue.
PSBesides autogenerated " "s, I found another strange thing in "Expression Web 2". If website contained local bin with dlls which versions mismatched with aspx-register and machine did not have matching dlls at all, then "Expression Web 2" might show a custom control in Design view without exceptions. I would expect an exception in this situation.These features of "Expression Web 2" look to me as bugs.
Hi Viktor,
Thanks for following up - I will check the project and make sure the correct versions are in the register tag and in the web.config. I'll let you know the results.
I'm the one that submitted the bug as well - my graphics designers were extremely unhappy they had to use Visual Studio once Expression Web 2 started breaking the ASPX pages.