editor1.EncodeHiddenValue issue

  •  12-04-2006, 1:14 PM

    editor1.EncodeHiddenValue issue

    I have a page that contains the .net editor.  This form contains field validation so if a required fields is blank the page will reload with the all the data the person has entered included a message the explains why the form was not submitted.  This functionality works fine.  The page also contains a preview button (not the editor preview).  When the user clicks preview the form gets posted to a new page (target=_blank) so the user can see what the job posting looks like.  There were issues with the data that was being posted to the new page.  The data that was being posted look odd.  Check example below.
    #ul#2 #1li#2#1f#5nt c#5l#5r=r#9d #7iz#9=5#2r#9d#1/f#5nt#2

    So in the codebehind we added editor1.EncodeHiddenValue = False.  This fixed the data isssue but caused other problems.

    Example #1:
    We will create a job description using the editor with fonts colors and sizes.  If there user does not fill in all the required fields and clicks submit the form will reload explaining to the user that they forgot to enter data into a required field.  The data in the editor field for some reason changes.  Font colors will turn different colors then what the user had entered before they submitted.

    I know that editor1.EncodeHiddenValue = False is the issue because when I set it equal to true all of the font issues go away.  I'm really stuck at this point to any help would be great.
View Complete Thread