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 718083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:29:10+00:00 2026-05-14T05:29:10+00:00

I have installed VS2010 and MVC2 and testing a simple form using tinyMCE. When

  • 0

I have installed VS2010 and MVC2 and testing a simple form using tinyMCE. When I post the contents of the textarea in tinyMCE I get the dreaded YSD and the message

“a potentially dangerous…..”

I’ve seen this before so I put the ValidateInput(false) on the controller but no joy – I still get the error.

page code in edit.aspx is:

    <% using (Html.BeginForm()){ %>

    <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->
    <textarea id="elm1" name="mceText" rows="15" cols="80" style="width: 80%">
        &lt;p&gt;
            This is some example text that you can edit inside the
  &lt;strong&gt; TinyMCE editor&lt;/strong&gt;.
    </textarea>

    <br />
    <input type="submit" name="save" value="Submit" />
    <input type="reset" name="reset" value="Reset" />
<%} %>

and Controller action is:

    [AcceptVerbs(HttpVerbs.Post)]
    [ValidateInput(false)]
    public ActionResult Edit(string mceText)
    {

        return View();
    }

Any thoughts – (I know the code is not complete) been trying this for hours but everyone just says to use ValidateInput(false)

  • 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-05-14T05:29:11+00:00Added an answer on May 14, 2026 at 5:29 am

    This is why: http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes#0.1__Toc256770147

    The request validation feature in ASP.NET provides a certain level of
    default protection against cross-site scripting (XSS) attacks. In
    previous versions of ASP.NET, request validation was enabled by
    default. However, it applied only to ASP.NET pages (.aspx files and
    their class files) and only when those pages were executing.

    In ASP.NET 4, by default, request validation is enabled for all
    requests, because it is enabled before the BeginRequest phase of an
    HTTP request. As a result, request validation applies to requests for
    all ASP.NET resources, not just .aspx page requests. This includes
    requests such as Web service calls and custom HTTP handlers. Request
    validation is also active when custom HTTP modules are reading the
    contents of an HTTP request.

    As a result, request validation errors might now occur for requests
    that previously did not trigger errors. To revert to the behavior of
    the ASP.NET 2.0 request validation feature, add the following setting
    in the Web.config file:

    <httpRuntime requestValidationMode="2.0" />
    

    However, we recommend that you analyze any request validation errors
    to determine whether existing handlers, modules, or other custom code
    accesses potentially unsafe HTTP inputs that could be XSS attack
    vectors.

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

Sidebar

Ask A Question

Stats

  • Questions 353k
  • Answers 353k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try this. I wrote it using ANSI syntax for clarity.… May 14, 2026 at 7:39 am
  • Editorial Team
    Editorial Team added an answer Create the style element with createElement: var h = document.getElementsByTagName('head').item(0);… May 14, 2026 at 7:39 am
  • Editorial Team
    Editorial Team added an answer I'm not sure I fully understand your question, but a… May 14, 2026 at 7:39 am

Related Questions

ASP.NET MVC 2 Beta was just released and I'm a bit confused as to
I just installed VS2010 Beta 2. When it opens for the first time it
i've just installed the VS2010 premium beta 2 and I can't get javascript intellisense
Has anyone run into the error where your upgrading a VS2008 project which targets
I know msbuild will be installed, if I install Visual Studio 2005 or 2008.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.