Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
690
Cannot use WebHtmlEditor in Expression Web 2
posted

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 "&nbsp;"):

                            <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>
                               
                               
                                &nbsp; </ighedit:HtmlBoxMenuItem>

Parents
No Data
Reply
  • 24497
    Suggested Answer
    posted

    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 "&nbsp;" 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.

    PS
    Besides autogenerated "&nbsp;"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.

Children