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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:45:40+00:00 2026-05-15T13:45:40+00:00

The whole weekend, I’ve been learning how to use TinyMCE with ASP.NET MVC. I

  • 0

The whole weekend, I’ve been learning how to use TinyMCE with ASP.NET MVC. I was getting the XSS error (“A potentially dangerous Request.Form value was detected from the client(…)“).

To deal with that, I was advised to use the [ValidateInput(false)] attribute to release the checking, but without success. Until, by accident, I did a postback to a different action method (i.e. not the one that displayed the view containning TextArea control). so I have to explicit both the Action and the controller. IT WORKED. So I tried to explicitly declare the BeginForm for the first case, then, IT WORKED AGAIN.

The question is WHY

<%Using(Html.BegiForm()){%>

or

<%Using(BeginForm("WriteArticle"))%>

both did not work.

<%Using(Html.BeginForm("WriteArticle", "ArticleManagement")){%>

This one worked.

So, Why the famous “Convention over configuration” didn’t work?

EDIT

[ValidateInput(false)]
public class ArticleManagementController:Controller
{     
  protected override void OnActionExecuting(ActionExecutingContext filterContext)
  {
    //Here model is created and updated
  }
  public ActionResult WriteArticle()
  {
    //Here's the method that displays the View containing the TinyMCE editor
  }

  //There are more action methods
}

Thanks for helping.

  • 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-15T13:45:41+00:00Added an answer on May 15, 2026 at 1:45 pm

    Html.BeginForm() does one thing. IT generates HTML. So if one overload works and the other does not, then they are generating different HTML. View source of the rendered page. They will be different. This is most likely tied to your routing or your view execution path, but it’s hard to be sure without seeing the HTML and your code. The important point is this: When your server reacts differently, you are almost certainly sending it a different request. View Source and Firebug’s Net panel are the two tools you should start with.

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

Sidebar

Related Questions

I finally got to try .NET MVC this weekend and, as was expected, ran
I need to authenticate users and get info about them from an ASP.Net application.
i've been struggling the whole week end to connect to jasperIntelligence service in vain
We have a button that saves asynchronously using AjaxToolKit/C#/.NET. I'm getting this in my
The whole error is: Error 1 error C2065: 'socklen_t' : undeclared identifier c:usersricharddocumentsvisual studio
I've been spending the better part of the weekend trying to figure out the
I ran into a strange issue over the weekend while I was working on
Our whole system is being designed around REST and are now considering how processes
My whole app is serving stuff in utf-8, only one page (xml) should return
The whole code is written in ANSI C, and it should remain so. I

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.