Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8432955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:15:33+00:00 2026-06-10T06:15:33+00:00

I have a WYSIWYG editor embedded on a user control that obviously goes into

  • 0

I have a WYSIWYG editor embedded on a user control that obviously goes into a web page. When I submit the page, I am getting the “A potentially dangerous Request.Form value was detected from the client” exception. In previous versions of .NET, I would just turn off ValidateRequest for the page.

However, in .NET 4.5, it seems to have a property of ValidateRequestMode. When I set this to disabled, I still continue to get the error. There isn’t much out there yet regarding .NET 4.5 errors so does anyone know the solution?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:15:35+00:00Added an answer on June 10, 2026 at 6:15 am

    I found the issue. It had to do with the TinyMCE editor needing to have the content encoded prior to the code behind trying to read and post it. The solution was to encode via javascript as m0s suggested. TinyMCE has a built-in option you can set

    encoding: "xml"
    

    Which I had set but it doesn’t encode apostrophes, which I had in the content. So in order to fix it, you have to add this to the TinyMCE init function on the page:

    TinyMCE 3.x

    setup: function (ed) {
        ed.onSaveContent.add(function (i, o) {
            o.content = o.content.replace(/&#39/g, "&apos");
        });
    }
    

    TinyMCE 4.x

    setup: function(editor) {
        editor.on("SaveContent", function(i) {
            i.content = i.content.replace(/&#39/g, "&apos");
        });
    }
    

    I found the solution here: http://blog.tentaclesoftware.com/archive/2012/05/21/asp-net-4-0-tinymce-and-ldquoa-potentially-dangerous-request.aspx

    Hope that helps someone!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web admin where there is a wysiwyg editor when a user
I have a page with a WYSIWYG editor the user can use. After editing,
We have a client that is using a wysiwyg editor to add multiple photos
I currently have a wysiwyg iframe where the user can submit input to another
I have a wysiwyg editor that is changing my ampersand characters from & to
Here is what I'm looking to do. 1: Have a jQuery WYSIWYG editor that
I have a working rails 3.1 application that uses the mercury wysiwyg editor, however
I have a Rails application where the user can insert text with a WYSIWYG-Editor.
I have a problem with FCKEditor and TinyMCE. I need a WYSIWYG editor that
Ok so I have built a custom control that handles wysiwyg editing. Essentially on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.