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

  • SEARCH
  • Home
  • 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 6196477
In Process

The Archive Base Latest Questions

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

A potentially dangerous Request.Form value was detected from the client (Body=<b></b>). This error is

  • 0

A potentially dangerous Request.Form value was detected from the client (Body="<b></b>").

This error is occurring when I try to enter something like <b></b> in my comments field and send it. I’ve searched and only thing I find is to disable validation for dangerous data altogether, but I don’t want to disable it since then my site will be vulnerable.
What I want is to encode it before sending or something along these lines so it will send the data, just encoded.

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

    If you’re using .net 4 you can decorate your model with [AllowHtml] which will let just that specific property through. You can then sanitize it in the controller logic.

    public class MyViewModel
    {
        public string prop1 { get; set; }
    
        [AllowHtml]
        public string prop2 { get; set; }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: A potentially dangerous Request.Form value was detected from the client A potentially
I am getting the error A potentially dangerous Request.Form value was detected from the
I'm trying to solve a A potentially dangerous Request.Form value was detected from the
I am getting this error in my asp.net page: A potentially dangerous Request.Form value
today I receive multiple (50->*) e-mails regarding: A potentially dangerous Request.Form value was detected
What's the best way to handle errors such as A potentially dangerous Request.Form value
I am receiving the rather self explanatory error: A potentially dangerous Request.Path value was
When I put value in textbox then its throught this error. I am making
Potentially embarrassing question, but there is obviously something I'm missing that I want/need to
Given a potentially huge integer value (in C# string format), I want to be

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.