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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:49:24+00:00 2026-05-15T03:49:24+00:00

I am developing a personal blog in ASP.NET MVC 1.0. This blog application has

  • 0

I am developing a personal blog in ASP.NET MVC 1.0. This blog application has Views like “Insert Post”, “Edit Post”, etc. I need to post a string containing HTML back to the appropriate controller method. That HTML value is being posted from a textarea.

I’ve read that it’s necessary to disable ValidateRequest directly on the page with the attribute ValidateRequest = "false" or in the web.config file.

When I insert an HTML value in my textarea, I get always the error of ‘potential value dangerous’.

How can I use ValidateRequest to allow the form element containing HTML values to be posted?

  • 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-15T03:49:25+00:00Added an answer on May 15, 2026 at 3:49 am

    For ASP.Net MVC, you have to use the ValidateInput(false) Attribute on your Controller action like so:

        [ValidateInput(false)]
        public ActionResult SaveBodyCopy(int? id, string richTextEditor1)
    

    Then the rest of your Controller action.

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

Sidebar

Related Questions

When developing a web app, in my case a ASP.NET MVC app, but this
I'm developing ASP.NET 4.0 web application, and I want to read the current user
I am currently developing a PHP MVC Framework for a personal project. While I
Developing a C# .NET 2.0 WinForm Application. Need the application to close and restart
When developing a .Net web application, if a run time error is generated, it
Currently developing an application using the newest version of symfony, obtained through PEAR. This
here's my question, i'm developing a personal website that has a huge animation in
I am developing a personal PHP/MySQL app, and I came across this particular scenario
I am new to WPF. Currently I am developing a personal(at home) application in
I am developing a large-ish application in WPF/WCF/NHibernate/etc. and have implemented the MVP pattern

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.